From 4bde2415f96f7abf4df7ac7f3a13d0d93b7dd960 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 25 May 2026 18:40:52 +0200 Subject: [PATCH] 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. --- src/modules/module-scheduler-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-scheduler-v1.c b/src/modules/module-scheduler-v1.c index 71e6c3d3b..9b94a3ceb 100644 --- a/src/modules/module-scheduler-v1.c +++ b/src/modules/module-scheduler-v1.c @@ -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;