aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-services_video__capture_broadcasting__receiver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-services_video__capture_broadcasting__receiver.cc')
-rw-r--r--devel/electron13/files/patch-services_video__capture_broadcasting__receiver.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-services_video__capture_broadcasting__receiver.cc b/devel/electron13/files/patch-services_video__capture_broadcasting__receiver.cc
new file mode 100644
index 000000000000..77b9d1aa9f78
--- /dev/null
+++ b/devel/electron13/files/patch-services_video__capture_broadcasting__receiver.cc
@@ -0,0 +1,20 @@
+--- services/video_capture/broadcasting_receiver.cc.orig 2021-01-07 00:36:40 UTC
++++ services/video_capture/broadcasting_receiver.cc
+@@ -39,7 +39,7 @@ void CloneSharedBufferHandle(const mojo::ScopedSharedB
+ void CloneSharedBufferToRawFileDescriptorHandle(
+ const mojo::ScopedSharedBufferHandle& source,
+ media::mojom::VideoBufferHandlePtr* target) {
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ // |source| is unwrapped to a |PlatformSharedMemoryRegion|, from whence a file
+ // descriptor can be extracted which is then mojo-wrapped.
+ base::subtle::PlatformSharedMemoryRegion platform_region =
+@@ -184,7 +184,7 @@ void BroadcastingReceiver::BufferContext::
+ ConvertRawFileDescriptorToSharedBuffer() {
+ DCHECK(buffer_handle_->is_shared_memory_via_raw_file_descriptor());
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ // The conversion unwraps the descriptor from its mojo handle to the raw file
+ // descriptor (ie, an int). This is used to create a
+ // PlatformSharedMemoryRegion which is then wrapped as a