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

Unified Diff: chromecast/media/cma/pipeline/audio_pipeline_impl.cc

Issue 1148253006: Chromecast: Use std::vector to pass video config in CMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to TOT Created 5 years, 6 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: chromecast/media/cma/pipeline/audio_pipeline_impl.cc
diff --git a/chromecast/media/cma/pipeline/audio_pipeline_impl.cc b/chromecast/media/cma/pipeline/audio_pipeline_impl.cc
index 82b56e25973ab5df2cf10edad30ddd43495bc444..d937f8a2bc8c49c12a0ae9e566668519451be008 100644
--- a/chromecast/media/cma/pipeline/audio_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/audio_pipeline_impl.cc
@@ -109,6 +109,7 @@ void AudioPipelineImpl::Initialize(
if (frame_provider)
SetCodedFrameProvider(frame_provider.Pass());
+ DCHECK(audio_config.IsValidConfig());
if (!audio_device_->SetConfig(
DecoderConfigAdapter::ToCastAudioConfig(kPrimary, audio_config)) ||
!av_pipeline_impl_->Initialize()) {
@@ -127,6 +128,7 @@ void AudioPipelineImpl::OnUpdateConfig(
StreamId id,
const ::media::AudioDecoderConfig& audio_config,
const ::media::VideoDecoderConfig& video_config) {
+ DCHECK(!video_config.IsValidConfig());
if (audio_config.IsValidConfig()) {
CMALOG(kLogControl) << "AudioPipelineImpl::OnUpdateConfig id:" << id << " "
<< audio_config.AsHumanReadableString();

Powered by Google App Engine
This is Rietveld 408576698