mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
d4b06431ff
commit
cff9dbf9dd
2 changed files with 17 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue