From 6a64b4461e3f7c388f3f50aa91bfae398b3c45c8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Mar 2023 11:48:43 +0200 Subject: [PATCH] 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. --- 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 a82a1fe02..a38f5fb55 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");