impl-link: make passive link if both ports are passive

Only make a passive link when both ports are passive.
Otherwise, adding a monitor stream on the loopback output stream will
make a passive link.
This commit is contained in:
Wim Taymans 2023-03-28 11:48:43 +02:00
parent c8bfa69320
commit 6a64b4461e

View file

@ -1203,7 +1203,7 @@ struct pw_impl_link *pw_context_create_link(struct pw_context *context,
/* passive means that this link does not make the nodes active */
str = pw_properties_get(properties, PW_KEY_LINK_PASSIVE);
this->passive = str ? spa_atob(str) : output->passive | input->passive;
this->passive = str ? spa_atob(str) : output->passive && input->passive;
if (this->passive && str == NULL)
pw_properties_set(properties, PW_KEY_LINK_PASSIVE, "true");