mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
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:
parent
a72a877515
commit
000b448ba3
4 changed files with 4 additions and 5 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue