OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/filters/decoder_stream.h" | 5 #include "media/filters/decoder_stream.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 template <DemuxerStream::Type StreamType> | 41 template <DemuxerStream::Type StreamType> |
42 DecoderStream<StreamType>::DecoderStream( | 42 DecoderStream<StreamType>::DecoderStream( |
43 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 43 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
44 ScopedVector<Decoder> decoders, | 44 ScopedVector<Decoder> decoders, |
45 const SetDecryptorReadyCB& set_decryptor_ready_cb) | 45 const SetDecryptorReadyCB& set_decryptor_ready_cb) |
46 : task_runner_(task_runner), | 46 : task_runner_(task_runner), |
47 state_(STATE_UNINITIALIZED), | 47 state_(STATE_UNINITIALIZED), |
48 stream_(NULL), | 48 stream_(NULL), |
| 49 low_delay_(false), |
49 decoder_selector_( | 50 decoder_selector_( |
50 new DecoderSelector<StreamType>(task_runner, | 51 new DecoderSelector<StreamType>(task_runner, |
51 decoders.Pass(), | 52 decoders.Pass(), |
52 set_decryptor_ready_cb)), | 53 set_decryptor_ready_cb)), |
53 active_splice_(false), | 54 active_splice_(false), |
54 pending_decode_requests_(0), | 55 pending_decode_requests_(0), |
55 weak_factory_(this) {} | 56 weak_factory_(this) {} |
56 | 57 |
57 template <DemuxerStream::Type StreamType> | 58 template <DemuxerStream::Type StreamType> |
58 DecoderStream<StreamType>::~DecoderStream() { | 59 DecoderStream<StreamType>::~DecoderStream() { |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 } | 531 } |
531 | 532 |
532 // The resetting process will be continued in OnDecoderReinitialized(). | 533 // The resetting process will be continued in OnDecoderReinitialized(). |
533 ReinitializeDecoder(); | 534 ReinitializeDecoder(); |
534 } | 535 } |
535 | 536 |
536 template class DecoderStream<DemuxerStream::VIDEO>; | 537 template class DecoderStream<DemuxerStream::VIDEO>; |
537 template class DecoderStream<DemuxerStream::AUDIO>; | 538 template class DecoderStream<DemuxerStream::AUDIO>; |
538 | 539 |
539 } // namespace media | 540 } // namespace media |
OLD | NEW |