From 1809a84562bc8caf8796a0cf24cba00cc0748526 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 18 Apr 2022 15:27:09 +0200 Subject: [PATCH] context: ignore inactive nodes some more Don't try to follow inactive node links. Don't assign inactive nodes to a fallback driver. --- src/pipewire/context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index e8279b00e..976f00b33 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -948,6 +948,9 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *node) pw_impl_node_set_driver(n, driver); n->passive = true; + if (!n->active) + continue; + spa_list_for_each(p, &n->input_ports, link) { spa_list_for_each(l, &p->links, input_link) { t = l->output->node; @@ -1187,7 +1190,7 @@ again: pw_log_debug("%p: unassigned node %p: '%s' active:%d want_driver:%d target:%p", context, n, n->name, n->active, n->want_driver, target); - t = n->want_driver ? target : NULL; + t = n->want_driver && n->active ? target : NULL; pw_impl_node_set_driver(n, t); if (t == NULL)