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/0054.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/0054.patch')
-rw-r--r-- | third_party/libwebrtc/moz-patch-stack/0054.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0054.patch b/third_party/libwebrtc/moz-patch-stack/0054.patch new file mode 100644 index 0000000000..85bdc9b645 --- /dev/null +++ b/third_party/libwebrtc/moz-patch-stack/0054.patch @@ -0,0 +1,30 @@ +From: Nico Grunbaum <na-g@nostrum.com> +Date: Thu, 28 Oct 2021 18:13:00 +0000 +Subject: Bug 1729367 - P6 - Restore PID recording post cherry-pick;r=mjf + +This restores the code from P0, which was removed to make cherry-picking 439ffe462a66ad9fa9a251b265e4ab28c2647d25 and 449a78b1e20ea85b11f967cf3a184ee610ce21c3 easier. + +Differential Revision: https://phabricator.services.mozilla.com/D129714 +Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/72a83cb2e571023cd4150bbdef5be5455ce851f4 +--- + modules/desktop_capture/win/window_capture_utils.cc | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/modules/desktop_capture/win/window_capture_utils.cc b/modules/desktop_capture/win/window_capture_utils.cc +index ccfef49bc5..d58c02e17c 100644 +--- a/modules/desktop_capture/win/window_capture_utils.cc ++++ b/modules/desktop_capture/win/window_capture_utils.cc +@@ -79,6 +79,10 @@ BOOL CALLBACK GetWindowListHandler(HWND hwnd, LPARAM param) { + DesktopCapturer::Source window; + window.id = reinterpret_cast<WindowId>(hwnd); + ++ DWORD pid; ++ GetWindowThreadProcessId(hwnd, &pid); ++ window.pid = static_cast<pid_t>(pid); ++ + // GetWindowText* are potentially blocking operations if `hwnd` is + // owned by the current process. The APIs will send messages to the window's + // message loop, and if the message loop is waiting on this operation we will +-- +2.34.1 + |