mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
protocol-native: first bind, then register
First let the client bind to the core, then register the client. This way, the client is ready to receive methods on the core.
This commit is contained in:
parent
58c6d76328
commit
537598726b
1 changed files with 2 additions and 1 deletions
|
|
@ -290,10 +290,11 @@ static struct pw_client *client_new(struct server *s, int fd)
|
|||
spa_list_append(&s->this.client_list, &client->protocol_link);
|
||||
|
||||
pw_client_add_listener(client, &this->client_listener, &client_events, this);
|
||||
pw_client_register(client, client, pw_module_get_global(pd->module), NULL);
|
||||
|
||||
pw_global_bind(pw_core_get_global(core), client, PW_PERM_RWX, PW_VERSION_CORE, 0);
|
||||
|
||||
pw_client_register(client, client, pw_module_get_global(pd->module), NULL);
|
||||
|
||||
return client;
|
||||
|
||||
no_connection:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue