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

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

Issue 2376513002: Fix implicit configuration changes in MediaCodecAudioDecoder. (Closed)
Patch Set: Cleanup code a bit. 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
Index: media/filters/android/media_codec_audio_decoder.h
diff --git a/media/filters/android/media_codec_audio_decoder.h b/media/filters/android/media_codec_audio_decoder.h
index f9c7842b51640607314fad51b90d91fbdd7c2a62..a6b043b8f47cbd0a1da73e4b35166e8cc3ea0595 100644
--- a/media/filters/android/media_codec_audio_decoder.h
+++ b/media/filters/android/media_codec_audio_decoder.h
@@ -142,6 +142,9 @@ class MEDIA_EXPORT MediaCodecAudioDecoder : public AudioDecoder,
// Helper method to change the state.
void SetState(State new_state);
+ // Helper method to reconfigure |timestamp_helper_|.
+ void ResetTimestampState();
+
// TODO(timav): refactor the common part out and use it here and in AVDA
// (http://crbug.com/583082).
@@ -166,6 +169,11 @@ class MEDIA_EXPORT MediaCodecAudioDecoder : public AudioDecoder,
// Actual channel count that comes from decoder may be different than config.
int channel_count_;
+ ChannelLayout channel_layout_;
+
+ // Actual sample rate that comes from the decoder, may be different than
+ // config.
+ int sample_rate_;
// Callback that delivers output frames.
OutputCB output_cb_;
« no previous file with comments | « no previous file | media/filters/android/media_codec_audio_decoder.cc » ('j') | media/filters/android/media_codec_audio_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698