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

Unified Diff: media/base/android/media_decoder_job.cc

Issue 805273007: Android: Propagate sample rate change to audio decoder job (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove reconfigureAudioTrack Created 5 years, 11 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/base/android/media_decoder_job.cc
diff --git a/media/base/android/media_decoder_job.cc b/media/base/android/media_decoder_job.cc
index d96785e2121de96e6162c280da8ee3f6ef6dbdbf..866795b9e19bb390d96e329c35fe8161caada7b1 100644
--- a/media/base/android/media_decoder_job.cc
+++ b/media/base/android/media_decoder_job.cc
@@ -432,6 +432,7 @@ void MediaDecoderJob::DecodeInternal(
if (status == MEDIA_CODEC_OUTPUT_FORMAT_CHANGED) {
// TODO(qinmin): instead of waiting for the next output buffer to be
// dequeued, post a task on the UI thread to signal the format change.
+ GotOutputFormatChanged();
has_format_change = true;
}
} while (status != MEDIA_CODEC_OK && status != MEDIA_CODEC_ERROR &&
@@ -649,6 +650,9 @@ bool MediaDecoderJob::IsCodecReconfigureNeeded(
return true;
}
+void MediaDecoderJob::GotOutputFormatChanged() {
+}
qinmin 2015/01/27 22:37:01 nit: "}" can be moved to the previous line
kjoswiak 2015/01/27 23:18:25 Done.
+
bool MediaDecoderJob::UpdateOutputFormat() {
return false;
}
« media/base/android/media_decoder_job.h ('K') | « media/base/android/media_decoder_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698