mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
global: fix comment and use constant for core id
This commit is contained in:
parent
ef965dfc23
commit
bdad7d87f9
1 changed files with 2 additions and 2 deletions
|
|
@ -348,8 +348,8 @@ int pw_global_update_permissions(struct pw_global *global, struct pw_impl_client
|
|||
if (resource->client != client)
|
||||
continue;
|
||||
|
||||
/* don't ever destroy the context resource */
|
||||
if (!PW_PERM_IS_R(new_permissions) && global->id != 0)
|
||||
/* don't ever destroy the core resource */
|
||||
if (!PW_PERM_IS_R(new_permissions) && global->id != PW_ID_CORE)
|
||||
pw_resource_destroy(resource);
|
||||
else
|
||||
resource->permissions = new_permissions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue