From 102583c550f3e0bab90467990acfa1cd3ad3fc06 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 9 Oct 2020 16:51:35 +0200 Subject: [PATCH] Revert "impl-link: only emit active<->paused" This reverts commit 857f7ca67f1385cb9629bd04b6ceca26907725eb. 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. --- src/pipewire/impl-link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index 43b6eb358..d2d823974 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -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; if (state == PW_LINK_STATE_ERROR || - (old == PW_LINK_STATE_ACTIVE && state == PW_LINK_STATE_PAUSED) || - (old == PW_LINK_STATE_PAUSED && state == PW_LINK_STATE_ACTIVE)) + state == PW_LINK_STATE_PAUSED || + state == PW_LINK_STATE_ACTIVE) info_changed(link); if (state == PW_LINK_STATE_ERROR && link->global) {