mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -05:00
impl-link: don't change permissions when no global
It is possible that we are not registered yet (or registration failed) and then we can't update the NULL global permissions.
This commit is contained in:
parent
661ff95748
commit
892f27ded3
1 changed files with 1 additions and 1 deletions
|
|
@ -1133,7 +1133,7 @@ static void permissions_changed(struct pw_impl_link *this, struct pw_impl_port *
|
||||||
|
|
||||||
if (check_permission(this->context, this->output, this->input, this->properties) < 0) {
|
if (check_permission(this->context, this->output, this->input, this->properties) < 0) {
|
||||||
pw_impl_link_destroy(this);
|
pw_impl_link_destroy(this);
|
||||||
} else {
|
} else if (this->global != NULL) {
|
||||||
pw_global_update_permissions(this->global, client, old, new);
|
pw_global_update_permissions(this->global, client, old, new);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue