summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/moz-patch-stack/0105.patch
blob: d3ccb0bbd21761a41920c9fd9a3a275510807b30 (plain)
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
From: Jan Grulich <jgrulich@redhat.com>
Date: Tue, 5 Mar 2024 08:38:00 +0000
Subject: Bug 1615282 - WebRTC backport: PipeWire capturer - set capturer as
 failed when session is closed r=pehrsons,webrtc-reviewers

This is a simple backport of an WebRTC upstream change.

Upstream commit: 058bfe3ae37a7a245f9c8c6c03f4f7ac48fe179d

Differential Revision: https://phabricator.services.mozilla.com/D202788
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/633149c5da9337f67b6659e5d5bead2233027460
---
 modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc b/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc
index 40764de7ae..81caa9bd2d 100644
--- a/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc
+++ b/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc
@@ -112,6 +112,7 @@ void BaseCapturerPipeWire::OnScreenCastSessionClosed() {
   if (!capturer_failed_) {
     options_.screencast_stream()->StopScreenCastStream();
   }
+  capturer_failed_ = true;
 }
 
 void BaseCapturerPipeWire::UpdateResolution(uint32_t width, uint32_t height) {