context: add missing link prepare

It got removed accidentally in a previous commit, breaking some of the
loopback devices.

Fixes #1472
This commit is contained in:
Wim Taymans 2021-08-02 10:48:42 +02:00
parent fc85b33e80
commit f71529cbaf

View file

@ -995,6 +995,8 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *driver
if (t->visited || !t->active) if (t->visited || !t->active)
continue; continue;
pw_impl_link_prepare(l);
if (!l->passive) if (!l->passive)
driver->passive = n->passive = false; driver->passive = n->passive = false;
@ -1004,8 +1006,8 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *driver
} }
} }
} }
/* now go through all the followers of this driver and add the /* now go through all the nodes that have the same group and
* nodes that have the same group and that are not yet visited */ * that are not yet visited */
if (n->group[0] == '\0') if (n->group[0] == '\0')
continue; continue;