summaryrefslogtreecommitdiff
path: root/www/firefox/files
diff options
context:
space:
mode:
authorChristoph Moench-Tegeder <cmt@FreeBSD.org>2024-01-19 23:36:34 +0100
committerChristoph Moench-Tegeder <cmt@FreeBSD.org>2024-01-19 23:36:34 +0100
commit53a70f124869afd195d8eb34e20142e55eaa72cb (patch)
tree84d0c0d96c887d0162f3394242162a2cd15b34e7 /www/firefox/files
parentmail/thunderbird: update to 115.7.0 (rc1) (diff)
www/firefox: try to fix camera/video usage
This functionality should work on FreeBSD, too (not only "pure Linux" as the comments stated). Reported by: jsm@
Diffstat (limited to 'www/firefox/files')
-rw-r--r--www/firefox/files/patch-third__party_libwebrtc_modules_video__capture_video__capture__factory.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/www/firefox/files/patch-third__party_libwebrtc_modules_video__capture_video__capture__factory.cc b/www/firefox/files/patch-third__party_libwebrtc_modules_video__capture_video__capture__factory.cc
new file mode 100644
index 000000000000..b57030bdb636
--- /dev/null
+++ b/www/firefox/files/patch-third__party_libwebrtc_modules_video__capture_video__capture__factory.cc
@@ -0,0 +1,26 @@
+commit 324c4811690dd288a7bbd1378d129dc5e9d6f16b
+
+ video capture also is implented with WEBRTC_BSD (at least on FreeBSD)
+
+diff --git third_party/libwebrtc/modules/video_capture/video_capture_factory.cc third_party/libwebrtc/modules/video_capture/video_capture_factory.cc
+index e085ac2df8a0..2790fbbe1cba 100644
+--- third_party/libwebrtc/modules/video_capture/video_capture_factory.cc
++++ third_party/libwebrtc/modules/video_capture/video_capture_factory.cc
+@@ -24,7 +24,7 @@ rtc::scoped_refptr<VideoCaptureModule> VideoCaptureFactory::Create(
+ const char* deviceUniqueIdUTF8) {
+ // This is only implemented on pure Linux and WEBRTC_LINUX is defined for
+ // Android as well
+-#if !defined(WEBRTC_LINUX) || defined(WEBRTC_ANDROID)
++#if (!defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD)) || defined(WEBRTC_ANDROID)
+ return nullptr;
+ #else
+ return videocapturemodule::VideoCaptureImpl::Create(options,
+@@ -40,7 +40,7 @@ VideoCaptureModule::DeviceInfo* VideoCaptureFactory::CreateDeviceInfo(
+ VideoCaptureOptions* options) {
+ // This is only implemented on pure Linux and WEBRTC_LINUX is defined for
+ // Android as well
+-#if !defined(WEBRTC_LINUX) || defined(WEBRTC_ANDROID)
++#if (!defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD)) || defined(WEBRTC_ANDROID)
+ return nullptr;
+ #else
+ return videocapturemodule::VideoCaptureImpl::CreateDeviceInfo(options);