From bd98c6771eddacd7990536cd69a841f9ab85fa03 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 19 Jul 2021 18:21:11 +0200 Subject: [PATCH] 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 --- src/modules/module-echo-cancel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-echo-cancel.c b/src/modules/module-echo-cancel.c index d01e3b88e..d15f91454 100644 --- a/src/modules/module-echo-cancel.c +++ b/src/modules/module-echo-cancel.c @@ -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");