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

This reverts commit 6a64b4461e.

Now that sinks and sources are no longer passive by default, we need
just one part of the link to be passive to make things passive.

This breaks the stream recording from a passive stream case but we can
find a different fix for that later.
This commit is contained in:
Wim Taymans 2023-03-28 17:28:01 +02:00
parent 0f27432f8c
commit c84ef9e29a

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");