pulse-server: set the node.name on the input/output

Not on the global property because module-loopback does not read it
from there anymore in order to have unique names.
This commit is contained in:
Wim Taymans 2022-01-21 17:55:32 +01:00
parent a72a877515
commit 000b448ba3
4 changed files with 4 additions and 5 deletions

View file

@ -203,7 +203,7 @@ struct module *create_module_ladspa_sink(struct impl *impl, const char *argument
module_args_add_props(props, argument); module_args_add_props(props, argument);
if ((str = pw_properties_get(props, "sink_name")) != NULL) { if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str); pw_properties_set(capture_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL); pw_properties_set(props, "sink_name", NULL);
} }
if ((str = pw_properties_get(props, "sink_properties")) != NULL) { if ((str = pw_properties_get(props, "sink_properties")) != NULL) {

View file

@ -203,8 +203,7 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
module_args_add_props(props, argument); module_args_add_props(props, argument);
if ((str = pw_properties_get(props, "source_name")) != NULL) { if ((str = pw_properties_get(props, "source_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str); pw_properties_set(capture_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, PW_KEY_NODE_DESCRIPTION, str);
pw_properties_set(props, "source_name", NULL); pw_properties_set(props, "source_name", NULL);
} }
if ((str = pw_properties_get(props, "source_properties")) != NULL) { if ((str = pw_properties_get(props, "source_properties")) != NULL) {

View file

@ -169,7 +169,7 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
module_args_add_props(props, argument); module_args_add_props(props, argument);
if ((str = pw_properties_get(props, "sink_name")) != NULL) { if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str); pw_properties_set(capture_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL); pw_properties_set(props, "sink_name", NULL);
} }
if ((str = pw_properties_get(props, "sink_properties")) != NULL) { if ((str = pw_properties_get(props, "sink_properties")) != NULL) {

View file

@ -169,7 +169,7 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
module_args_add_props(props, argument); module_args_add_props(props, argument);
if ((str = pw_properties_get(props, "source_name")) != NULL) { if ((str = pw_properties_get(props, "source_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str); pw_properties_set(playback_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "source_name", NULL); pw_properties_set(props, "source_name", NULL);
} }
if ((str = pw_properties_get(props, "source_properties")) != NULL) { if ((str = pw_properties_get(props, "source_properties")) != NULL) {