From 9bfffc009dd4f5c7a99a9ac2a8c92940a9910abe Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 25 Apr 2019 12:55:31 +0200 Subject: [PATCH] core: only follow active nodes --- src/pipewire/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/core.c b/src/pipewire/core.c index 423753211..9ce1ae217 100644 --- a/src/pipewire/core.c +++ b/src/pipewire/core.c @@ -958,7 +958,7 @@ static int collect_nodes(struct pw_node *driver) spa_list_for_each(p, &n->input_ports, link) { spa_list_for_each(l, &p->links, input_link) { t = l->output->node; - if (!t->visited) { + if (!t->visited && t->active) { t->visited = true; spa_list_append(&queue, &t->sort_link); } @@ -967,7 +967,7 @@ static int collect_nodes(struct pw_node *driver) spa_list_for_each(p, &n->output_ports, link) { spa_list_for_each(l, &p->links, output_link) { t = l->input->node; - if (!t->visited) { + if (!t->visited && t->active) { t->visited = true; spa_list_append(&queue, &t->sort_link); }