module-metadata: allow create without client

Which will create a new impl-metadata object.
This commit is contained in:
Wim Taymans 2022-01-18 12:42:23 +01:00
parent afa0f9305d
commit d19ab798be
2 changed files with 45 additions and 21 deletions

View file

@ -271,9 +271,6 @@ 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);
impl->global = pw_global_new(context,