summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-07 11:52:35 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-07 11:52:35 +0200
commit5fda46fdb96484e36c78363557bc15ffe8523f3f (patch)
treebb2ce27dcdf40e51d32ccdf4c32e132e347f9870
parente5f85d6a4ce48b070840f0f2de2c1ca0e0f9fed5 (diff)
remote-node: activate node after init
Activate the node after we successfully created a proxy and initialized it.
-rw-r--r--src/modules/module-client-node/remote-node.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/module-client-node/remote-node.c b/src/modules/module-client-node/remote-node.c
index 8006369a..1ce71c53 100644
--- a/src/modules/module-client-node/remote-node.c
+++ b/src/modules/module-client-node/remote-node.c
@@ -1257,6 +1257,7 @@ struct pw_proxy *pw_core_spa_node_export(struct pw_core *core,
size_t user_data_size)
{
struct pw_impl_node *node;
+ struct pw_proxy *proxy;
node = pw_context_create_node(pw_core_get_context(core),
props ? pw_properties_new_dict(props) : NULL, 0);
@@ -1265,7 +1266,10 @@ struct pw_proxy *pw_core_spa_node_export(struct pw_core *core,
pw_impl_node_set_implementation(node, (struct spa_node*)object);
pw_impl_node_register(node, NULL);
- pw_impl_node_set_active(node, true);
- return node_export(core, node, true, user_data_size);
+ proxy = node_export(core, node, true, user_data_size);
+ if (proxy)
+ pw_impl_node_set_active(node, true);
+
+ return proxy;
}