mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
context: only prepared nodes can make a node non-passive
This avoid starting the node before the link has been prepared.
This commit is contained in:
parent
7846687df8
commit
f8aa4dcfcc
1 changed files with 2 additions and 2 deletions
|
|
@ -979,7 +979,7 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *driver
|
|||
|
||||
pw_impl_link_prepare(l);
|
||||
|
||||
if (!l->passive)
|
||||
if (!l->passive && l->prepared)
|
||||
driver->passive = n->passive = false;
|
||||
|
||||
if (l->prepared) {
|
||||
|
|
@ -997,7 +997,7 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *driver
|
|||
|
||||
pw_impl_link_prepare(l);
|
||||
|
||||
if (!l->passive)
|
||||
if (!l->passive && l->prepared)
|
||||
driver->passive = n->passive = false;
|
||||
|
||||
if (l->prepared) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue