mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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:
parent
c8bfa69320
commit
6a64b4461e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
/* passive means that this link does not make the nodes active */
|
||||||
str = pw_properties_get(properties, PW_KEY_LINK_PASSIVE);
|
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)
|
if (this->passive && str == NULL)
|
||||||
pw_properties_set(properties, PW_KEY_LINK_PASSIVE, "true");
|
pw_properties_set(properties, PW_KEY_LINK_PASSIVE, "true");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue