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:
Wim Taymans 2020-10-09 16:51:35 +02:00
parent 857f7ca67f
commit 102583c550

View file

@ -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) {