| Index: content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
|
| index a682648b7a50d21764a831ce9f68667022ed4bc8..f17dc6295cb4ab44e3f8be2c9a8648d048365648 100644
|
| --- a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
|
| @@ -433,10 +433,14 @@ void V4L2SliceVideoDecodeAccelerator::NotifyError(Error error) {
|
| }
|
| }
|
|
|
| -bool V4L2SliceVideoDecodeAccelerator::Initialize(
|
| - media::VideoCodecProfile profile,
|
| - VideoDecodeAccelerator::Client* client) {
|
| - DVLOGF(3) << "profile: " << profile;
|
| +bool V4L2SliceVideoDecodeAccelerator::Initialize(const Config& config,
|
| + Client* client) {
|
| + DVLOGF(3) << "profile: " << config.profile;
|
| + if (config.is_encrypted) {
|
| + NOTREACHED() << "Encrypted streams are not supported for this VDA";
|
| + return false;
|
| + }
|
| +
|
| DCHECK(child_task_runner_->BelongsToCurrentThread());
|
| DCHECK_EQ(state_, kUninitialized);
|
|
|
| @@ -444,7 +448,7 @@ bool V4L2SliceVideoDecodeAccelerator::Initialize(
|
| new base::WeakPtrFactory<VideoDecodeAccelerator::Client>(client));
|
| client_ = client_ptr_factory_->GetWeakPtr();
|
|
|
| - video_profile_ = profile;
|
| + video_profile_ = config.profile;
|
|
|
| if (video_profile_ >= media::H264PROFILE_MIN &&
|
| video_profile_ <= media::H264PROFILE_MAX) {
|
|
|