summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/moz-patch-stack/0029.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/libwebrtc/moz-patch-stack/0029.patch
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/moz-patch-stack/0029.patch')
-rw-r--r--third_party/libwebrtc/moz-patch-stack/0029.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0029.patch b/third_party/libwebrtc/moz-patch-stack/0029.patch
new file mode 100644
index 0000000000..014bc9e8c7
--- /dev/null
+++ b/third_party/libwebrtc/moz-patch-stack/0029.patch
@@ -0,0 +1,22 @@
+From: Jan-Ivar Bruaroey <jib@mozilla.com>
+Date: Fri, 18 Aug 2023 13:26:37 -0500
+Subject: Bug 1701809: Close dev/video* driver file descriptors after camera
+ access on linux. r=ng
+
+Differential Revision: https://phabricator.services.mozilla.com/D110589
+---
+ modules/video_capture/linux/device_info_v4l2.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/modules/video_capture/linux/device_info_v4l2.cc b/modules/video_capture/linux/device_info_v4l2.cc
+index cd0ba6e3df..c5d33ff9a4 100644
+--- a/modules/video_capture/linux/device_info_v4l2.cc
++++ b/modules/video_capture/linux/device_info_v4l2.cc
+@@ -330,6 +330,7 @@ int32_t DeviceInfoV4l2::CreateCapabilityMap(const char* deviceUniqueIdUTF8) {
+ if (ioctl(fd, VIDIOC_QUERYCAP, &cap) == 0) {
+ // skip devices without video capture capability
+ if (!IsVideoCaptureDevice(&cap)) {
++ close(fd);
+ continue;
+ }
+