mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
client-node: don't make add_listener async
It is not really async, the init is async.
This commit is contained in:
parent
1ab00fae6d
commit
33afa18621
5 changed files with 14 additions and 11 deletions
|
|
@ -151,7 +151,7 @@ pw_spa_node_new(struct pw_core *core,
|
|||
if (res < 0)
|
||||
goto clean_node;
|
||||
|
||||
if (SPA_RESULT_IS_ASYNC(res)) {
|
||||
if (flags & PW_SPA_NODE_FLAG_ASYNC) {
|
||||
impl->init_pending = spa_node_sync(impl->node, res);
|
||||
} else {
|
||||
complete_init(impl);
|
||||
|
|
@ -308,6 +308,9 @@ struct pw_node *pw_spa_node_load(struct pw_core *core,
|
|||
goto init_failed;
|
||||
}
|
||||
|
||||
if (SPA_RESULT_IS_ASYNC(res))
|
||||
flags |= PW_SPA_NODE_FLAG_ASYNC;
|
||||
|
||||
if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_Node, &iface)) < 0) {
|
||||
pw_log_error("can't get node interface %d", res);
|
||||
goto interface_failed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue