mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
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:
parent
df094b3649
commit
8fcfa154eb
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue