summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-02-03 12:32:17 +0100
committerWim Taymans <wtaymans@redhat.com>2020-02-03 12:32:17 +0100
commitbdad7d87f94a0a469d54a1a3f051712aadb395a8 (patch)
tree653ad343b3592974c36c821c5faded444895c901
parentef965dfc234ada4e68a9ef42609788d051e12dca (diff)
global: fix comment and use constant for core id
-rw-r--r--src/pipewire/global.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipewire/global.c b/src/pipewire/global.c
index 9ba4c0c2..eb4805cf 100644
--- a/src/pipewire/global.c
+++ b/src/pipewire/global.c
@@ -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;