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

Unified Diff: media/filters/opus_audio_decoder.cc

Issue 193303002: WeakPtr destruction order cleanup: media edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/opus_audio_decoder.cc
diff --git a/media/filters/opus_audio_decoder.cc b/media/filters/opus_audio_decoder.cc
index d4e2ec66794843755e95958363eb970b23352b1d..8d8287fd39a755a291c67507e6dcf7b9957888a0 100644
--- a/media/filters/opus_audio_decoder.cc
+++ b/media/filters/opus_audio_decoder.cc
@@ -255,7 +255,6 @@ static bool ParseOpusExtraData(const uint8* data, int data_size,
OpusAudioDecoder::OpusAudioDecoder(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner)
: task_runner_(task_runner),
- weak_factory_(this),
demuxer_stream_(NULL),
opus_decoder_(NULL),
channel_layout_(CHANNEL_LAYOUT_NONE),
@@ -265,8 +264,8 @@ OpusAudioDecoder::OpusAudioDecoder(
last_input_timestamp_(kNoTimestamp()),
frames_to_discard_(0),
frame_delay_at_start_(0),
- start_input_timestamp_(kNoTimestamp()) {
-}
+ start_input_timestamp_(kNoTimestamp()),
+ weak_factory_(this) {}
void OpusAudioDecoder::Initialize(
DemuxerStream* stream,

Powered by Google App Engine
This is Rietveld 408576698