echo-cancel: improve properties

Make the streams passive so that things can suspend.
Use a differend node.name for the input and output streams so that
autoconnect can actually remember the right target.
Make the media.name and description nicer.

See #1557
This commit is contained in:
Wim Taymans 2021-08-30 10:48:06 +02:00
parent d4b06431ff
commit cff9dbf9dd
2 changed files with 17 additions and 13 deletions

View file

@ -179,14 +179,14 @@ struct module *create_module_echo_cancel(struct impl *impl, const char *argument
pw_properties_set(source_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "source_name", NULL);
} else {
pw_properties_set(source_props, PW_KEY_NODE_NAME, "echo-cancel");
pw_properties_set(source_props, PW_KEY_NODE_NAME, "echo-cancel-source");
}
if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(sink_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL);
} else {
pw_properties_set(sink_props, PW_KEY_NODE_NAME, "echo-cancel");
pw_properties_set(sink_props, PW_KEY_NODE_NAME, "echo-cancel-sink");
}
if ((str = pw_properties_get(props, "source_master")) != NULL) {