mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
ac97175380
commit
5f9bb13237
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue