Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delete desktop capturers when they're not needed #39246

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Jul 26, 2023

Backport of #39194

See that PR for details.

Notes: Fixed desktopCapturer thumbnail generation after screen sharing is cancelled on Wayland.

trop bot and others added 2 commits July 26, 2023 08:40
Delete desktop capturer objects by resetting the DesktopMediaList
objects that own them after the sources have been collected. Capturers
that are not delegated are already being reset via a patch on
NativeDesktopMediaList. That is not safe for delegated capturers as
thumbnail generation depends on user events. Deleting the
DesktopMediaList operation is safe for all capturers and releases OS
capture resources as soon as possible.

Co-authored-by: Athul Iddya <athul@iddya.com>
Adding a patch to workaround a Chromium issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=1467060

The patch can be removed when the issue is resolved.

Co-authored-by: Athul Iddya <athul@iddya.com>
@trop trop bot requested a review from a team as a code owner July 26, 2023 08:40
@trop trop bot added 26-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jul 26, 2023
@jkleinsc jkleinsc merged commit 6b61917 into 26-x-y Jul 26, 2023
14 checks passed
@jkleinsc jkleinsc deleted the trop/26-x-y-bp-fix-delete-desktop-capturers-when-they-re-not-needed-1690360835964 branch July 26, 2023 13:27
@release-clerk
Copy link

release-clerk bot commented Jul 26, 2023

Release Notes Persisted

Fixed desktopCapturer thumbnail generation after screen sharing is cancelled on Wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
26-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant