From 01b4c4fa649207f8b77da2232cbb6773e2b03f4f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 30 Mar 2022 13:26:07 +0200 Subject: [PATCH] context: keep the driver passive when we can Only make the driver node active when we assign it an always_process node. Otherwise we can keep the driver passive until some other active nodes are added. Fixes a case where an need_driver node would automatically activate the driver, even when nothing is to be scheduled. --- src/pipewire/context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index a338c377d..f317337e2 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -1170,7 +1170,8 @@ again: if (t == NULL) ensure_state(n, false); else { - t->passive = false; + if (n->always_process) + t->passive = false; collect_nodes(context, n); } }