client: use core permission to pause/resume a client

Make it so that the permission of the core determines if a client
can continue or not. When the core is readable, the client is
allowed to continue otherwise it is paused.
This commit is contained in:
Wim Taymans 2020-07-16 13:25:39 +02:00
parent ac97175380
commit 5f9bb13237

View file

@ -633,9 +633,8 @@ int pw_impl_client_update_permissions(struct pw_impl_client *client,
pw_global_update_permissions(global, client, old_perm, new_perm);
}
}
if (n_permissions > 0)
pw_impl_client_set_busy(client, false);
def = find_permission(client, PW_ID_CORE);
pw_impl_client_set_busy(client, (def->permissions & PW_PERM_R) ? false : true);
return 0;
}