From 171e2a99baf3d2e4328b02d00a9f1eb1c451c6a6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 9 May 2023 10:11:51 +0200 Subject: [PATCH] context: Also add driver to always_process inactive nodes Commit 90b11e3c49c061bae26b020b7b8a492617627205 removed inactive node from the fallback driver, even if it was always_process. This should not happen, always_process nodes should stay on a driver in all cases. JACK nodes are marked like this and need to stay on the driver even when inactive or else they don't have a transport when inactive. Fixes #3189 --- 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 d1a9f10fc..4cffc5306 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -1268,7 +1268,8 @@ again: driver = NULL; spa_list_for_each(t, &collect, sort_link) { /* is any active and want a driver */ - if (t->want_driver && t->active && t->runnable) { + if ((t->want_driver && t->active && t->runnable) || + t->always_process) { driver = target; driver->runnable = true; break;