From 8fcfa154eb16a2c4c38b7e55aef83102e0e11e71 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 24 Oct 2022 15:18:03 +0200 Subject: [PATCH] impl-link: don't activate links with inactive input Also check the active state of the input node, not just if the node was added to the graph because a node can become inactive and only later be removed from the graph. --- src/pipewire/impl-link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index b02937729..012bced6c 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -619,7 +619,8 @@ int pw_impl_link_activate(struct pw_impl_link *this) pw_log_debug("%p: activate activated:%d state:%s", this, impl->activated, pw_link_state_as_string(this->info.state)); - if (impl->activated || !this->prepared || !impl->inode->added || !impl->onode->active) + if (impl->activated || !this->prepared || !impl->inode->active || + !impl->inode->added || !impl->onode->active) return 0; if (!impl->io_set) {