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(); |