mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: fix device.description
We now translate device.description to node.description when parsing the properties so check for node.description and generate one when it's not available. Fixes #2166
This commit is contained in:
parent
580f499939
commit
2cd3427786
1 changed files with 1 additions and 4 deletions
|
|
@ -219,10 +219,7 @@ struct module *create_module_null_sink(struct impl *impl, const char *argument)
|
|||
if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
|
||||
pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
|
||||
|
||||
if ((str = pw_properties_get(props, "device.description")) != NULL) {
|
||||
pw_properties_set(props, PW_KEY_NODE_DESCRIPTION, str);
|
||||
pw_properties_set(props, "device.description", NULL);
|
||||
} else {
|
||||
if ((str = pw_properties_get(props, PW_KEY_NODE_DESCRIPTION)) == NULL) {
|
||||
const char *name, *class;
|
||||
|
||||
name = pw_properties_get(props, PW_KEY_NODE_NAME);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue