From 12b4d6d965162f5a5fce7c9dfc2c64f0595a509c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 30 Oct 2020 12:56:58 +0100 Subject: [PATCH] impl-client: finish register when updating properties Also handle client client registration when old clients update the properties. --- src/pipewire/impl-client.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pipewire/impl-client.c b/src/pipewire/impl-client.c index f22e52999..54337e1ba 100644 --- a/src/pipewire/impl-client.c +++ b/src/pipewire/impl-client.c @@ -190,12 +190,13 @@ static int finish_register(struct pw_impl_client *client) if (impl->registered) return 0; + impl->registered = true; + pw_context_emit_check_access(client->context, client); update_busy(client); pw_global_update_keys(client->global, client->info.props, keys); pw_global_register(client->global); - impl->registered = true; return 0; } @@ -606,7 +607,9 @@ const struct pw_client_info *pw_impl_client_get_info(struct pw_impl_client *clie SPA_EXPORT int pw_impl_client_update_properties(struct pw_impl_client *client, const struct spa_dict *dict) { - return update_properties(client, dict, false); + int res = update_properties(client, dict, false); + finish_register(client); + return res; } SPA_EXPORT