aboutsummaryrefslogtreecommitdiff
path: root/devel/electron23/files/patch-media_gpu_chromeos_video__decoder__pipeline.cc
blob: 63ec3199f23db6971c46342569b52e20ac298210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- media/gpu/chromeos/video_decoder_pipeline.cc.orig	2023-02-01 18:43:22 UTC
+++ media/gpu/chromeos/video_decoder_pipeline.cc
@@ -789,7 +789,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
     }
   }
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   // Linux should always use a custom allocator (to allocate buffers using
   // libva) and a PlatformVideoFramePool.
   CHECK(allocator.has_value());
@@ -811,7 +811,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
 #error "Unsupported platform"
 #endif
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   // viable_candidate should always be set unless using L1 protected content,
   // which isn't an option on linux.
   CHECK(viable_candidate);