mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
modules: make a default node.link-group property
When nothing else is specified, add a default node.link-group property so that all the nodes from this echo-canceler are tagged as being linked together in some way. This allows the session manager to follow the relations between the different streams and avoids linking those related nodes together, which avoids playing or recording from itself in a loop. Fixes #1376
This commit is contained in:
parent
587e9d5fb1
commit
bd98c6771e
1 changed files with 2 additions and 0 deletions
|
|
@ -854,6 +854,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
|
||||
if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
|
||||
pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u", id);
|
||||
if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
|
||||
pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u", id);
|
||||
if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue