mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
core: only keep the first core resource
The resource with id 0 is always the core resource. If the client later binds to the core again, don't override the core resource.
This commit is contained in:
parent
389781e3d5
commit
63723cd15e
1 changed files with 4 additions and 2 deletions
|
|
@ -376,8 +376,10 @@ core_bind_func(struct pw_global *global,
|
||||||
|
|
||||||
pw_resource_set_implementation(resource, &core_methods, resource);
|
pw_resource_set_implementation(resource, &core_methods, resource);
|
||||||
|
|
||||||
spa_list_insert(this->resource_list.prev, &resource->link);
|
spa_list_append(&this->resource_list, &resource->link);
|
||||||
client->core_resource = resource;
|
|
||||||
|
if (resource->id == 0)
|
||||||
|
client->core_resource = resource;
|
||||||
|
|
||||||
pw_log_debug("core %p: bound to %d", this, resource->id);
|
pw_log_debug("core %p: bound to %d", this, resource->id);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue