| Index: media/filters/source_buffer_stream.cc
|
| diff --git a/media/filters/source_buffer_stream.cc b/media/filters/source_buffer_stream.cc
|
| index 478b7d5d274feec7d66d72b67e995368b237edf0..de1a9c943c5c0fb50f42c1dc52ad15721599f429 100644
|
| --- a/media/filters/source_buffer_stream.cc
|
| +++ b/media/filters/source_buffer_stream.cc
|
| @@ -940,6 +940,11 @@ bool SourceBufferStream::UpdateVideoConfig(const VideoDecoderConfig& config) {
|
| DCHECK(!video_configs_.empty());
|
| DCHECK(audio_configs_.empty());
|
|
|
| + if (video_configs_[0]->is_encrypted() != config.is_encrypted()) {
|
| + DVLOG(1) << "UpdateVideoConfig() : Encryption changes not allowed.";
|
| + return false;
|
| + }
|
| +
|
| if (video_configs_[0]->codec() != config.codec()) {
|
| DVLOG(1) << "UpdateVideoConfig() : Codec changes not allowed.";
|
| return false;
|
|
|