mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pass spa_dict around as config
Don't pass pw_properties around when we simply need to pass around config info, only use pw_properties when used to construct an object that keeps the properties.
This commit is contained in:
parent
3eec3f5abf
commit
1317ca140c
20 changed files with 73 additions and 68 deletions
|
|
@ -142,7 +142,7 @@ static struct node *create_node(struct object *obj, uint32_t id,
|
|||
node->handle = handle;
|
||||
node->node = iface;
|
||||
node->proxy = pw_core_export(impl->core,
|
||||
info->type, pw_properties_new_dict(info->props), node->node, 0);
|
||||
info->type, info->props, node->node, 0);
|
||||
if (node->proxy == NULL)
|
||||
goto clean_node;
|
||||
|
||||
|
|
@ -250,7 +250,7 @@ static struct object *create_object(struct impl *impl, uint32_t id,
|
|||
obj->handle = handle;
|
||||
obj->device = iface;
|
||||
obj->proxy = pw_core_export(impl->core,
|
||||
info->type, pw_properties_new_dict(info->props), obj->device, 0);
|
||||
info->type, info->props, obj->device, 0);
|
||||
if (obj->proxy == NULL)
|
||||
goto clean_object;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue