| Index: content/common/gpu/media/vt_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/vt_video_decode_accelerator.cc b/content/common/gpu/media/vt_video_decode_accelerator.cc
|
| index a98ce79cccd6fa469829ff8dfda94d43c68d51ad..9384a77951bc757893b555f6eb0f3cfc556abadc 100644
|
| --- a/content/common/gpu/media/vt_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/vt_video_decode_accelerator.cc
|
| @@ -313,10 +313,15 @@ VTVideoDecodeAccelerator::~VTVideoDecodeAccelerator() {
|
| DCHECK(gpu_thread_checker_.CalledOnValidThread());
|
| }
|
|
|
| -bool VTVideoDecodeAccelerator::Initialize(
|
| - media::VideoCodecProfile profile,
|
| - Client* client) {
|
| +bool VTVideoDecodeAccelerator::Initialize(const Config& config,
|
| + Client* client) {
|
| DCHECK(gpu_thread_checker_.CalledOnValidThread());
|
| +
|
| + if (config.is_encrypted) {
|
| + NOTREACHED() << "Encrypted streams are not supported for this VDA";
|
| + return false;
|
| + }
|
| +
|
| client_ = client;
|
|
|
| if (!InitializeVideoToolbox())
|
| @@ -324,7 +329,7 @@ bool VTVideoDecodeAccelerator::Initialize(
|
|
|
| bool profile_supported = false;
|
| for (const auto& supported_profile : kSupportedProfiles) {
|
| - if (profile == supported_profile) {
|
| + if (params.profile == supported_profile) {
|
| profile_supported = true;
|
| break;
|
| }
|
|
|