From 892f27ded3c3c4cbc7588205ae4294f8ab32d784 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 13 Jan 2022 21:14:34 +0100 Subject: [PATCH] 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. --- src/pipewire/impl-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index c9b89db1a..c04883ebb 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -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); } }