| Index: content/common/gpu/media/vaapi_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.cc b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
|
| index 97823a7d3fd93304f63bf263e5536c4692ef5675..11ecc697fa71ffc9651c28cef9b8831c6b9084b7 100644
|
| --- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
|
| @@ -316,13 +316,20 @@ VaapiVideoDecodeAccelerator::~VaapiVideoDecodeAccelerator() {
|
| DCHECK_EQ(message_loop_, base::MessageLoop::current());
|
| }
|
|
|
| -bool VaapiVideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile,
|
| +bool VaapiVideoDecodeAccelerator::Initialize(const StreamParameters& params,
|
| Client* client) {
|
| DCHECK_EQ(message_loop_, base::MessageLoop::current());
|
|
|
| + if (params.is_encrypted) {
|
| + DLOG(ERROR) << "Encrypted streams are not supported for this VDA";
|
| + return false;
|
| + }
|
| +
|
| client_ptr_factory_.reset(new base::WeakPtrFactory<Client>(client));
|
| client_ = client_ptr_factory_->GetWeakPtr();
|
|
|
| + media::VideoCodecProfile profile = params.profile;
|
| +
|
| base::AutoLock auto_lock(lock_);
|
| DCHECK_EQ(state_, kUninitialized);
|
| DVLOG(2) << "Initializing VAVDA, profile: " << profile;
|
|
|