Index: media/base/android/audio_decoder_job.cc |
diff --git a/media/base/android/audio_decoder_job.cc b/media/base/android/audio_decoder_job.cc |
index 8c619bee23631083239b7cb5ba016aade1b17ed1..5b892144ed32f122f49941f8892bbeada7108ca0 100644 |
--- a/media/base/android/audio_decoder_job.cc |
+++ b/media/base/android/audio_decoder_job.cc |
@@ -186,6 +186,12 @@ MediaDecoderJob::MediaDecoderJobStatus |
return STATUS_FAILURE; |
} |
+ // ConfigureAndStart() creates AudioTrack with |config_sampling_rate_| |
+ // and |config_num_channels_|. Keep |output_...| in sync to detect the changes |
+ // that might come with OnOutputFormatChanged(). |
+ output_sampling_rate_ = config_sampling_rate_; |
+ output_num_channels_ = config_num_channels_; |
+ |
SetVolumeInternal(); |
// Reset values used to track codec bridge output |