| Index: webkit/media/crypto/ppapi/clear_key_cdm.cc
|
| diff --git a/webkit/media/crypto/ppapi/clear_key_cdm.cc b/webkit/media/crypto/ppapi/clear_key_cdm.cc
|
| index 00a11a32cb48b05dd6c3f1a4347c358ae095704c..3bd4161dc1c2a875139c2207ccbf3bd319258716 100644
|
| --- a/webkit/media/crypto/ppapi/clear_key_cdm.cc
|
| +++ b/webkit/media/crypto/ppapi/clear_key_cdm.cc
|
| @@ -288,15 +288,15 @@ cdm::Status ClearKeyCdm::InitializeVideoDecoder(
|
|
|
| void ClearKeyCdm::ResetDecoder(cdm::StreamType decoder_type) {
|
| #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER)
|
| - DCHECK(decoder_type == cdm::kStreamTypeVideo);
|
| - video_decoder_->Reset();
|
| + if (decoder_type == cdm::kStreamTypeVideo)
|
| + video_decoder_->Reset();
|
| #endif
|
| }
|
|
|
| void ClearKeyCdm::DeinitializeDecoder(cdm::StreamType decoder_type) {
|
| #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER)
|
| - DCHECK(decoder_type == cdm::kStreamTypeVideo);
|
| - video_decoder_->Deinitialize();
|
| + if (decoder_type == cdm::kStreamTypeVideo)
|
| + video_decoder_->Deinitialize();
|
| #endif
|
| }
|
|
|
| @@ -407,7 +407,7 @@ void ClearKeyCdm::GenerateFakeVideoFrame(base::TimeDelta timestamp,
|
|
|
| cdm::Status ClearKeyCdm::DecryptAndDecodeSamples(
|
| const cdm::InputBuffer& encrypted_buffer,
|
| - cdm::Buffer* sample_buffer) {
|
| + cdm::AudioFrames* audio_frames) {
|
| NOTIMPLEMENTED();
|
| return cdm::kDecryptError;
|
| }
|
|
|