mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-27 21:37:37 -04:00
scheduler: make active nodes go to IDLE
When a node is configured and supposed to be IDLE, set it to the IDLE state, it does not matter if it is active or not.
This commit is contained in:
parent
63d824d35e
commit
4bde2415f9
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ static int ensure_state(struct pw_impl_node *node, bool running, bool idle)
|
|||
bool need_config = SPA_FLAG_IS_SET(node->spa_flags, SPA_NODE_FLAG_NEED_CONFIGURE);
|
||||
if (node->active && node->runnable && !need_config && running)
|
||||
state = PW_NODE_STATE_RUNNING;
|
||||
else if (!node->active && !need_config && idle)
|
||||
else if (!need_config && idle)
|
||||
state = PW_NODE_STATE_IDLE;
|
||||
else if (state > PW_NODE_STATE_IDLE)
|
||||
state = PW_NODE_STATE_IDLE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue