mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
impl-link: only recalc graph when reaching PAUSED upwards
Don't recalc when destroying the link (ACTIVE->PAUSED)
This commit is contained in:
parent
421a15939d
commit
10bc423819
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ static void link_update_state(struct pw_impl_link *link, enum pw_link_state stat
|
|||
pw_resource_error(resource, res, error);
|
||||
}
|
||||
|
||||
if (old != PW_LINK_STATE_PAUSED && state == PW_LINK_STATE_PAUSED) {
|
||||
if (old < PW_LINK_STATE_PAUSED && state == PW_LINK_STATE_PAUSED) {
|
||||
link->prepared = true;
|
||||
link->preparing = false;
|
||||
pw_context_recalc_graph(link->context, "link prepared");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue