Index: content/common/gpu/media/vt_video_decode_accelerator_mac.cc |
diff --git a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc |
index d832870f496248a462f37ec6899c8a1fc12577a2..c29a46784e2136cb8fcf7089532b73f93055608c 100644 |
--- a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc |
+++ b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc |
@@ -327,6 +327,11 @@ bool VTVideoDecodeAccelerator::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_ = client; |
if (!InitializeVideoToolbox()) |