metadata: only set default name when not already set

This commit is contained in:
Wim Taymans 2020-07-30 14:28:11 +02:00
parent ba8522aac9
commit a5ec68e61c

View file

@ -232,6 +232,7 @@ pw_metadata_new(struct pw_context *context, struct pw_resource *resource,
return NULL;
}
if (pw_properties_get(properties, PW_KEY_METADATA_NAME) == NULL)
pw_properties_set(properties, PW_KEY_METADATA_NAME, "default");
pw_resource_install_marshal(resource, true);