mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
impl-client: finish register when updating properties
Also handle client client registration when old clients update the properties.
This commit is contained in:
parent
21bda3102b
commit
12b4d6d965
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue