mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
node: initialize before registering
First perform the initialize signal so that we can finalize initialization before registering the object.
This commit is contained in:
parent
27c53a31bc
commit
cf6794203d
1 changed files with 5 additions and 3 deletions
|
|
@ -384,12 +384,14 @@ int pw_node_register(struct pw_node *this,
|
|||
if (this->global == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
pw_global_add_listener(this->global, &this->global_listener, &global_events, this);
|
||||
|
||||
this->info.id = this->global->id;
|
||||
|
||||
pw_node_initialized(this);
|
||||
|
||||
pw_global_add_listener(this->global, &this->global_listener, &global_events, this);
|
||||
pw_global_register(this->global, owner, parent);
|
||||
|
||||
return pw_node_initialized(this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pw_node_initialized(struct pw_node *this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue