Chromium Code Reviews| 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..045281901ae340ad2896b3bcc8aa0a413e567116 100644 |
| --- a/chromecast/media/cma/pipeline/audio_pipeline_impl.cc |
| +++ b/chromecast/media/cma/pipeline/audio_pipeline_impl.cc |
| @@ -127,6 +127,7 @@ void AudioPipelineImpl::OnUpdateConfig( |
| StreamId id, |
| const ::media::AudioDecoderConfig& audio_config, |
| const ::media::VideoDecoderConfig& video_config) { |
| + DCHECK(!video_config.IsValidConfig()); |
|
gunsch
2015/06/04 17:03:42
Hm, is this actually safe? Do we only ever pass in
erickung1
2015/06/04 20:29:20
Yes. the config only comes with buffer if there is
gunsch
2015/06/05 00:17:12
What do you mean by "we should add this for check"
erickung1
2015/06/05 01:04:18
We should put DCHECK() here, because it's a bug an
|
| if (audio_config.IsValidConfig()) { |
| CMALOG(kLogControl) << "AudioPipelineImpl::OnUpdateConfig id:" << id << " " |
| << audio_config.AsHumanReadableString(); |