Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: media/filters/decoder_stream.cc

Issue 415273002: Fix various uninitialized member variables in media code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/audio_renderer_impl.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « media/filters/audio_renderer_impl.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698