mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
metadata: only set default name when not already set
This commit is contained in:
parent
ba8522aac9
commit
a5ec68e61c
1 changed files with 2 additions and 1 deletions
|
|
@ -232,7 +232,8 @@ pw_metadata_new(struct pw_context *context, struct pw_resource *resource,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
pw_properties_set(properties, PW_KEY_METADATA_NAME, "default");
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue