mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
Revert "impl-link: only emit active<->paused"
This reverts commit 857f7ca67f.
Not a good idea. We should always notify about the steady state of
the link, which is PAUSED/ACTIVE or ERROR. the other ones are
intermediate and not so important.
This commit is contained in:
parent
857f7ca67f
commit
102583c550
1 changed files with 2 additions and 2 deletions
|
|
@ -113,8 +113,8 @@ static void link_update_state(struct pw_impl_link *link, enum pw_link_state stat
|
||||||
|
|
||||||
link->info.change_mask |= PW_LINK_CHANGE_MASK_STATE;
|
link->info.change_mask |= PW_LINK_CHANGE_MASK_STATE;
|
||||||
if (state == PW_LINK_STATE_ERROR ||
|
if (state == PW_LINK_STATE_ERROR ||
|
||||||
(old == PW_LINK_STATE_ACTIVE && state == PW_LINK_STATE_PAUSED) ||
|
state == PW_LINK_STATE_PAUSED ||
|
||||||
(old == PW_LINK_STATE_PAUSED && state == PW_LINK_STATE_ACTIVE))
|
state == PW_LINK_STATE_ACTIVE)
|
||||||
info_changed(link);
|
info_changed(link);
|
||||||
|
|
||||||
if (state == PW_LINK_STATE_ERROR && link->global) {
|
if (state == PW_LINK_STATE_ERROR && link->global) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue