mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: take type from info
This commit is contained in:
parent
b6efcd90a7
commit
18c57efb39
2 changed files with 2 additions and 3 deletions
|
|
@ -133,7 +133,6 @@ static void object_destroy(struct object *o)
|
|||
spa_hook_remove(&o->proxy_listener);
|
||||
pw_proxy_destroy(o->this.proxy);
|
||||
}
|
||||
free(o->this.type);
|
||||
if (o->this.props)
|
||||
pw_properties_free(o->this.props);
|
||||
clear_params(&o->this.param_list, SPA_ID_INVALID);
|
||||
|
|
@ -460,7 +459,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
}
|
||||
o->this.id = id;
|
||||
o->this.permissions = permissions;
|
||||
o->this.type = strdup(type);
|
||||
o->this.type = info->type;
|
||||
o->this.version = version;
|
||||
o->this.props = props ? pw_properties_new_dict(props) : NULL;
|
||||
o->this.proxy = proxy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue