metadata: add client-id to properties

Add the client that owns the metadata to the properties.
This commit is contained in:
Wim Taymans 2021-06-16 09:26:57 +02:00
parent 9984dcd1ea
commit 9d9e3f2d23

View file

@ -79,9 +79,12 @@ static void *create_object(void *_data,
goto error_resource;
}
if (properties)
if (properties) {
pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
pw_impl_factory_get_info(data->this)->id);
pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
pw_impl_client_get_info(client)->id);
}
result = pw_metadata_new(pw_impl_client_get_context(client), metadata_resource, properties);
if (result == NULL) {