| Index: media/gpu/android_video_decode_accelerator.cc
|
| diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
|
| index f7851da8ec568a94f7efa2675b5207c98946f983..710a43b58d48c7dda38da575cee7461b2992d7fa 100644
|
| --- a/media/gpu/android_video_decode_accelerator.cc
|
| +++ b/media/gpu/android_video_decode_accelerator.cc
|
| @@ -424,7 +424,7 @@ bool AndroidVideoDecodeAccelerator::Initialize(const Config& config,
|
| // We signaled that we support deferred initialization, so see if the client
|
| // does also.
|
| deferred_initialization_pending_ = config.is_deferred_initialization_allowed;
|
| - if (config_.is_encrypted && !deferred_initialization_pending_) {
|
| + if (config_.is_encrypted() && !deferred_initialization_pending_) {
|
| DLOG(ERROR) << "Deferred initialization must be used for encrypted streams";
|
| return false;
|
| }
|
| @@ -470,7 +470,7 @@ bool AndroidVideoDecodeAccelerator::InitializePictureBufferManager() {
|
| return false;
|
|
|
| // If we are encrypted, then we aren't able to create the codec yet.
|
| - if (config_.is_encrypted) {
|
| + if (config_.is_encrypted()) {
|
| InitializeCdm();
|
| return true;
|
| }
|
| @@ -601,7 +601,7 @@ bool AndroidVideoDecodeAccelerator::QueueInput() {
|
| } else {
|
| status = media_codec_->QueueSecureInputBuffer(
|
| input_buf_index, memory, bitstream_buffer.size(), key_id, iv,
|
| - subsamples, presentation_timestamp);
|
| + subsamples, config_.encryption_scheme, presentation_timestamp);
|
| }
|
|
|
| DVLOG(2) << __FUNCTION__
|
| @@ -1595,8 +1595,8 @@ bool AndroidVideoDecodeAccelerator::IsMediaCodecSoftwareDecodingForbidden()
|
| const {
|
| // Prevent MediaCodec from using its internal software decoders when we have
|
| // more secure and up to date versions in the renderer process.
|
| - return !config_.is_encrypted && (codec_config_->codec_ == kCodecVP8 ||
|
| - codec_config_->codec_ == kCodecVP9);
|
| + return !config_.is_encrypted() && (codec_config_->codec_ == kCodecVP8 ||
|
| + codec_config_->codec_ == kCodecVP9);
|
| }
|
|
|
| } // namespace media
|
|
|