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

Unified Diff: media/filters/ffmpeg_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/ffmpeg_audio_decoder.cc
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc
index 3ea70ff02407ac1df9d9b9b9ef5a39ae0cf85c07..f48dbcdfcb33e42ae55e60e697c9e87948ebdc0c 100644
--- a/media/filters/ffmpeg_audio_decoder.cc
+++ b/media/filters/ffmpeg_audio_decoder.cc
@@ -72,7 +72,6 @@ static void ReleaseAudioBufferImpl(void* opaque, uint8* data) {
FFmpegAudioDecoder::FFmpegAudioDecoder(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner)
: task_runner_(task_runner),
- weak_factory_(this),
demuxer_stream_(NULL),
bytes_per_channel_(0),
channel_layout_(CHANNEL_LAYOUT_NONE),
@@ -80,8 +79,8 @@ FFmpegAudioDecoder::FFmpegAudioDecoder(
samples_per_second_(0),
av_sample_format_(0),
last_input_timestamp_(kNoTimestamp()),
- output_frames_to_drop_(0) {
-}
+ output_frames_to_drop_(0),
+ weak_factory_(this) {}
void FFmpegAudioDecoder::Initialize(
DemuxerStream* stream,

Powered by Google App Engine
This is Rietveld 408576698