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

linux-pipewire: Close sessions as we are done with them #7470

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

aleixpol
Copy link
Contributor

Description

This way the stream can be cleaned up. Otherwise, we closed them all when OBS closes which works but is not entirely correct.

Motivation and Context

On Plasma we show an element for each button and it would infinitely grow as we interact with OBS.

How Has This Been Tested?

I've been testing this against our system and confirmed that Close is called as we replace the session_handle so the system can properly clean up the UI.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@tytan652 tytan652 added Bug Fix Non-breaking change which fixes an issue Linux Affects Linux labels Sep 26, 2022
@tytan652
Copy link
Collaborator

Commit prefix should not have plugins/ just linux-pipewire.

@aleixpol aleixpol changed the title plugins/linux-pipewire: Close sessions as we are done with them linux-pipewire: Close sessions as we are done with them Sep 26, 2022
@aleixpol
Copy link
Contributor Author

Commit prefix should not have plugins/ just linux-pipewire.

Addressed, thanks!

plugins/linux-pipewire/screencast-portal.c Outdated Show resolved Hide resolved
plugins/linux-pipewire/screencast-portal.c Outdated Show resolved Hide resolved
@aleixpol
Copy link
Contributor Author

Addressed both and tested them to work.

Copy link
Member

@GeorgesStavracas GeorgesStavracas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except the nitpick

plugins/linux-pipewire/screencast-portal.c Show resolved Hide resolved
This way the stream can be cleaned up. Otherwise, we closed them all
when OBS closes which works but is not entirely correct.
@GeorgesStavracas GeorgesStavracas merged commit 6fb83ab into obsproject:master Sep 27, 2022
@GeorgesStavracas
Copy link
Member

This should be picked to the release/28.0 branch.

@WizardCM WizardCM added this to the OBS Studio 28.1 milestone Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Non-breaking change which fixes an issue Linux Affects Linux
Projects
No open projects
Status: Fixed & Released
Development

Successfully merging this pull request may close these issues.

None yet

4 participants