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.
This commit is contained in:
Wim Taymans 2022-10-24 15:18:03 +02:00
parent df094b3649
commit 8fcfa154eb

View file

@ -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_log_debug("%p: activate activated:%d state:%s", this, impl->activated,
pw_link_state_as_string(this->info.state)); 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; return 0;
if (!impl->io_set) { if (!impl->io_set) {