From c84ef9e29ae40f4b607229389aae046f4fcf8ceb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Mar 2023 17:28:01 +0200 Subject: [PATCH] Revert "impl-link: make passive link if both ports are passive" This reverts commit 6a64b4461e3f7c388f3f50aa91bfae398b3c45c8. 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. --- src/pipewire/impl-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index a38f5fb55..a82a1fe02 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -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");