File: s0131.patch

package info (click to toggle)
firefox 149.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,767,760 kB
  • sloc: cpp: 7,416,064; javascript: 6,752,859; ansic: 3,774,850; python: 1,250,473; xml: 641,578; asm: 439,191; java: 186,617; sh: 56,634; makefile: 18,856; objc: 13,092; perl: 12,763; pascal: 5,960; yacc: 4,583; cs: 3,846; lex: 1,720; ruby: 1,002; php: 436; lisp: 258; awk: 105; sql: 66; sed: 53; csh: 10; exp: 6
file content (32 lines) | stat: -rw-r--r-- 1,335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Dan Baker <dbaker@mozilla.com>
Date: Wed, 3 Dec 2025 09:44:00 -0700
Subject: Bug 2000941 - (fix-412ea40eeb) ifdef out IID_IGraphicsCaptureSession6
 as current windows build SDK does not include it

Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/cb3700134901dea40f70b2da11e35b3e861d0c3c
---
 modules/desktop_capture/win/wgc_capture_session.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/desktop_capture/win/wgc_capture_session.cc b/modules/desktop_capture/win/wgc_capture_session.cc
index 3037d471cc..763ae9c22d 100644
--- a/modules/desktop_capture/win/wgc_capture_session.cc
+++ b/modules/desktop_capture/win/wgc_capture_session.cc
@@ -276,6 +276,9 @@ HRESULT WgcCaptureSession::StartCapture(const DesktopCaptureOptions& options) {
   }
 #endif
 
+// Until Mozilla builds with SDK v10.0.26100.0 or newer, this
+// code will not build.
+#if !defined(WEBRTC_MOZILLA_BUILD)
   // Windows 11 24H2 (10.0.26100.0) added
   // `IGraphicsCaptureSession6::put_IncludeSecondaryWindows()`. See
   // `wgc_include_secondary_windows()` in
@@ -287,6 +290,7 @@ HRESULT WgcCaptureSession::StartCapture(const DesktopCaptureOptions& options) {
     session6->put_IncludeSecondaryWindows(
         options.wgc_include_secondary_windows());
   }
+#endif
 
   allow_zero_hertz_ = options.allow_wgc_zero_hertz();