electron/patches/webrtc
trop[bot] 96f9cc5157
fix: store portal restore token under the right source ID (#40193)
XDG Desktop Portal provides restore tokens to restore a previously
selected PipeWire stream instead of prompting the user again. This
restore token is single use only and it has to be replaced when the
stream is completed/stopped.

BaseCapturerPipewire maintains two source IDs: one is initialized by
the constructor for new sources (source_id_) and another is for
capturing previously selected sources (selected_source_id_). The
restore token was always being stored under `source_id_`, even if the
capture was ongoing for `selected_source_id_`. This prevents a stream
from being restored more than once. Fix that by storing the restore
token under the selected source ID if it exists.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Athul Iddya <athul@iddya.com>
2023-10-13 22:09:05 +02:00
..
.patches fix: store portal restore token under the right source ID (#40193) 2023-10-13 22:09:05 +02:00
fix_check_pipewire_init_before_creating_generic_capturer.patch fix: check PipeWire init before creating generic capturer (#39874) 2023-09-15 20:23:58 +02:00
fix_fallback_to_x11_capturer_on_wayland.patch fix: fallback to X11 capturer if pipewire fails on Wayland (#37511) 2023-03-07 13:59:06 -08:00
fix_mark_pipewire_capturer_as_failed_after_session_is_closed.patch fix: delete desktop capturers when they're not needed (#39194) 2023-07-26 10:40:19 +02:00
pipewire_capturer_make_restore_tokens_re-usable_more_than_one_time.patch fix: store portal restore token under the right source ID (#40193) 2023-10-13 22:09:05 +02:00