mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
impl-link: only emit active<->paused
This commit is contained in:
parent
8f953dfdde
commit
857f7ca67f
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 ||
|
||||||
state == PW_LINK_STATE_PAUSED ||
|
(old == PW_LINK_STATE_ACTIVE && state == PW_LINK_STATE_PAUSED) ||
|
||||||
state == PW_LINK_STATE_ACTIVE)
|
(old == PW_LINK_STATE_PAUSED && 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