diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/moz-patch-stack/0019.patch | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/moz-patch-stack/0019.patch')
-rw-r--r-- | third_party/libwebrtc/moz-patch-stack/0019.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0019.patch b/third_party/libwebrtc/moz-patch-stack/0019.patch new file mode 100644 index 0000000000..e8538290e8 --- /dev/null +++ b/third_party/libwebrtc/moz-patch-stack/0019.patch @@ -0,0 +1,47 @@ +From: Dan Minor <dminor@mozilla.com> +Date: Fri, 29 Mar 2019 18:43:00 +0000 +Subject: Bug 1539220 - Prefer non-RGB24 capabilities when available; + r=pehrsons + +We've hit a number of problems with handling of RGB24 video capture on +Windows. This adds a check that will ignore any RGB24 capture capabilities +when determining a best match if there are other capabilities available to +workaround the problems. + +Differential Revision: https://phabricator.services.mozilla.com/D25449 +Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/c12307f3817bec87712ab5930493c3135c76b0a0 +--- + modules/video_capture/device_info_impl.cc | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/modules/video_capture/device_info_impl.cc b/modules/video_capture/device_info_impl.cc +index 7cccdb51a7..2a6afb3147 100644 +--- a/modules/video_capture/device_info_impl.cc ++++ b/modules/video_capture/device_info_impl.cc +@@ -100,10 +100,23 @@ int32_t DeviceInfoImpl::GetBestMatchedCapability( + const int32_t numberOfCapabilies = + static_cast<int32_t>(_captureCapabilities.size()); + ++ bool hasNonRGB24Capability = false; + for (int32_t tmp = 0; tmp < numberOfCapabilies; + ++tmp) // Loop through all capabilities + { + VideoCaptureCapability& capability = _captureCapabilities[tmp]; ++ if (capability.videoType != VideoType::kRGB24) { ++ hasNonRGB24Capability = true; ++ } ++ } ++ ++ for (int32_t tmp = 0; tmp < numberOfCapabilies; ++ ++tmp) // Loop through all capabilities ++ { ++ VideoCaptureCapability& capability = _captureCapabilities[tmp]; ++ if (hasNonRGB24Capability && capability.videoType == VideoType::kRGB24) { ++ continue; ++ } + + const int32_t diffWidth = capability.width - requested.width; + const int32_t diffHeight = capability.height - requested.height; +-- +2.34.1 + |