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:
Wim Taymans 2021-08-18 15:13:46 +02:00
parent 7846687df8
commit f8aa4dcfcc

View file

@ -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) {