impl-link: also handle unprepared active links

An ACTIVE link going to < PAUSED is unprepared.
This commit is contained in:
Wim Taymans 2024-09-24 10:46:21 +02:00
parent dd7a2819fa
commit 1bdb01d6fd

View file

@ -211,7 +211,7 @@ static void link_update_state(struct pw_impl_link *link, enum pw_link_state stat
link->prepared = true;
link->preparing = false;
pw_context_recalc_graph(link->context, "link prepared");
} else if (old == PW_LINK_STATE_PAUSED && state < PW_LINK_STATE_PAUSED) {
} else if (old >= PW_LINK_STATE_PAUSED && state < PW_LINK_STATE_PAUSED) {
link->prepared = false;
link->preparing = false;
pw_context_recalc_graph(link->context, "link unprepared");