From f71529cbaf989a8b0fdae5aabbd42efa670e081f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Aug 2021 10:48:42 +0200 Subject: [PATCH] context: add missing link prepare It got removed accidentally in a previous commit, breaking some of the loopback devices. Fixes #1472 --- src/pipewire/context.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index c18c88954..143ed99fd 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -995,6 +995,8 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *driver if (t->visited || !t->active) continue; + pw_impl_link_prepare(l); + if (!l->passive) 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 - * nodes that have the same group and that are not yet visited */ + /* now go through all the nodes that have the same group and + * that are not yet visited */ if (n->group[0] == '\0') continue;