core: only follow active nodes

This commit is contained in:
Wim Taymans 2019-04-25 12:55:31 +02:00
parent cd779a1c93
commit 9bfffc009d

View file

@ -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(p, &n->input_ports, link) {
spa_list_for_each(l, &p->links, input_link) { spa_list_for_each(l, &p->links, input_link) {
t = l->output->node; t = l->output->node;
if (!t->visited) { if (!t->visited && t->active) {
t->visited = true; t->visited = true;
spa_list_append(&queue, &t->sort_link); 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(p, &n->output_ports, link) {
spa_list_for_each(l, &p->links, output_link) { spa_list_for_each(l, &p->links, output_link) {
t = l->input->node; t = l->input->node;
if (!t->visited) { if (!t->visited && t->active) {
t->visited = true; t->visited = true;
spa_list_append(&queue, &t->sort_link); spa_list_append(&queue, &t->sort_link);
} }