access: use key to access property

This commit is contained in:
Wim Taymans 2020-07-17 16:46:26 +02:00
parent 119ef5e376
commit cd7763c814

View file

@ -69,7 +69,7 @@ static void object_update(void *data)
struct pw_permission permissions[1]; struct pw_permission permissions[1];
if (client->obj->info == NULL || client->obj->info->props == NULL || if (client->obj->info == NULL || client->obj->info->props == NULL ||
(str = spa_dict_lookup(client->obj->info->props, "pipewire.access")) == NULL || (str = spa_dict_lookup(client->obj->info->props, PW_KEY_ACCESS)) == NULL ||
strcmp(str, "flatpak") != 0) strcmp(str, "flatpak") != 0)
return; return;