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

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

Issue 1242913004: MediaCodecPlayer implementation (stage 3 - browser seek and surface change) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-seek
Patch Set: Fixed SeekTo() followed by Release() and added uunit tests for this case Created 5 years, 5 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 | media/base/android/media_codec_decoder.h » ('j') | media/base/android/media_codec_decoder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_audio_decoder.cc
diff --git a/media/base/android/media_codec_audio_decoder.cc b/media/base/android/media_codec_audio_decoder.cc
index 6bef03de32214781c2e75801b8920fac6afcb198..1d038b02abb7cbcdaaaa8418d785597ef6ceb5a5 100644
--- a/media/base/android/media_codec_audio_decoder.cc
+++ b/media/base/android/media_codec_audio_decoder.cc
@@ -107,6 +107,12 @@ MediaCodecDecoder::ConfigStatus MediaCodecAudioDecoder::ConfigureInternal() {
DVLOG(1) << class_name() << "::" << __FUNCTION__;
+ if (configs_.audio_codec == kUnknownAudioCodec) {
+ DVLOG(0) << class_name() << "::" << __FUNCTION__
+ << " configuration parameters are required";
+ return CONFIG_FAILURE;
+ }
+
media_codec_bridge_.reset(AudioCodecBridge::Create(configs_.audio_codec));
if (!media_codec_bridge_)
return CONFIG_FAILURE;
« no previous file with comments | « no previous file | media/base/android/media_codec_decoder.h » ('j') | media/base/android/media_codec_decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698