mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
core: only follow active nodes
This commit is contained in:
parent
cd779a1c93
commit
9bfffc009d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue