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:
Wim Taymans 2022-02-22 15:08:28 +01:00
parent 580f499939
commit 2cd3427786

View file

@ -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);