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:
Wim Taymans 2022-01-13 21:14:34 +01:00
parent 661ff95748
commit 892f27ded3

View file

@ -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) {
pw_impl_link_destroy(this);
} else {
} else if (this->global != NULL) {
pw_global_update_permissions(this->global, client, old, new);
}
}