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 d1e27ab4f5d6387bccbf89516533256ffac14ced..91f6ecd537fe0369e672a333da9b4cb3b1805c64 100644 |
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
@@ -330,6 +330,11 @@ bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, |
return false; |
} |
+ if (config.output_mode != Config::OutputMode::ALLOCATE) { |
+ NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA"; |
+ return false; |
+ } |
+ |
client_ptr_factory_.reset(new base::WeakPtrFactory<Client>(client)); |
client_ = client_ptr_factory_->GetWeakPtr(); |