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

Unified Diff: media/filters/android/media_codec_audio_decoder.cc

Issue 2378643003: Fix initialization in MediaCodecAudioDecoder (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/android/media_codec_audio_decoder.cc
diff --git a/media/filters/android/media_codec_audio_decoder.cc b/media/filters/android/media_codec_audio_decoder.cc
index f002dffad86140645a884321e069fd135b487de6..961e462db56ae8f2e4509312b625c613a1a39d5c 100644
--- a/media/filters/android/media_codec_audio_decoder.cc
+++ b/media/filters/android/media_codec_audio_decoder.cc
@@ -80,6 +80,8 @@ void MediaCodecAudioDecoder::Initialize(const AudioDecoderConfig& config,
config_ = config;
output_cb_ = BindToCurrentLoop(output_cb);
+ ResetTimestampState();
+
if (config_.is_encrypted()) {
// Postpone initialization after MediaCrypto is available.
// SetCdm uses init_cb in a method that's already bound to the current loop.
@@ -93,7 +95,6 @@ void MediaCodecAudioDecoder::Initialize(const AudioDecoderConfig& config,
return;
}
- ResetTimestampState();
SetState(STATE_READY);
bound_init_cb.Run(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698