Differential D19900 Diff 58584 head/www/qt5-webengine/files/patch-src_3rdparty_chromium_media_capture_video_create__video__capture__device__factory.cc
Changeset View
Changeset View
Standalone View
Standalone View
head/www/qt5-webengine/files/patch-src_3rdparty_chromium_media_capture_video_create__video__capture__device__factory.cc
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/3rdparty/chromium/media/capture/video/create_video_capture_device_factory.cc.orig 2019-03-07 09:23:57 UTC | |||||
+++ src/3rdparty/chromium/media/capture/video/create_video_capture_device_factory.cc | |||||
@@ -10,7 +10,7 @@ | |||||
#include "media/capture/video/fake_video_capture_device_factory.h" | |||||
#include "media/capture/video/file_video_capture_device_factory.h" | |||||
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) | |||||
+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) | |||||
#include "media/capture/video/linux/video_capture_device_factory_linux.h" | |||||
#elif defined(OS_CHROMEOS) | |||||
#include "media/capture/video/chromeos/public/cros_features.h" | |||||
@@ -31,7 +31,7 @@ namespace { | |||||
std::unique_ptr<VideoCaptureDeviceFactory> | |||||
CreatePlatformSpecificVideoCaptureDeviceFactory( | |||||
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | |||||
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) | |||||
+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) | |||||
return std::make_unique<VideoCaptureDeviceFactoryLinux>(ui_task_runner); | |||||
#elif defined(OS_CHROMEOS) | |||||
// On Chrome OS we have to support two use cases: |