summaryrefslogtreecommitdiff
path: root/src/modules/module-client-node
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/module-client-node')
-rw-r--r--src/modules/module-client-node/remote-node.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/module-client-node/remote-node.c b/src/modules/module-client-node/remote-node.c
index a5ffcba4..3e1d7331 100644
--- a/src/modules/module-client-node/remote-node.c
+++ b/src/modules/module-client-node/remote-node.c
@@ -1104,7 +1104,7 @@ static const struct spa_node_callbacks node_callbacks = {
.xrun = node_xrun
};
-static struct pw_proxy *node_export(struct pw_remote *remote, void *object, bool do_free,
+static struct pw_proxy *node_export(struct pw_core_proxy *core_proxy, void *object, bool do_free,
size_t user_data_size)
{
struct pw_node *node = object;
@@ -1112,7 +1112,7 @@ static struct pw_proxy *node_export(struct pw_remote *remote, void *object, bool
struct node_data *data;
int i;
- client_node = pw_core_proxy_create_object(remote->core_proxy,
+ client_node = pw_core_proxy_create_object(core_proxy,
"client-node",
PW_TYPE_INTERFACE_ClientNode,
PW_VERSION_CLIENT_NODE,
@@ -1122,7 +1122,7 @@ static struct pw_proxy *node_export(struct pw_remote *remote, void *object, bool
return NULL;
data = pw_proxy_get_user_data(client_node);
- data->remote = remote;
+ data->remote = ((struct pw_proxy *)core_proxy)->remote;
data->node = node;
data->do_free = do_free;
data->core = pw_node_get_core(node);
@@ -1161,7 +1161,7 @@ static struct pw_proxy *node_export(struct pw_remote *remote, void *object, bool
return data->proxy;
}
-struct pw_proxy *pw_remote_node_export(struct pw_remote *remote,
+struct pw_proxy *pw_core_proxy_node_export(struct pw_core_proxy *core_proxy,
uint32_t type, struct pw_properties *props, void *object,
size_t user_data_size)
{
@@ -1171,16 +1171,16 @@ struct pw_proxy *pw_remote_node_export(struct pw_remote *remote,
pw_node_update_properties(node, &props->dict);
pw_properties_free(props);
}
- return node_export(remote, object, false, user_data_size);
+ return node_export(core_proxy, object, false, user_data_size);
}
-struct pw_proxy *pw_remote_spa_node_export(struct pw_remote *remote,
+struct pw_proxy *pw_core_proxy_spa_node_export(struct pw_core_proxy *core_proxy,
uint32_t type, struct pw_properties *props, void *object,
size_t user_data_size)
{
struct pw_node *node;
- node = pw_node_new(pw_remote_get_core(remote), props, 0);
+ node = pw_node_new(pw_core_proxy_get_core(core_proxy), props, 0);
if (node == NULL)
return NULL;
@@ -1188,5 +1188,5 @@ struct pw_proxy *pw_remote_spa_node_export(struct pw_remote *remote,
pw_node_register(node, NULL);
pw_node_set_active(node, true);
- return node_export(remote, node, true, user_data_size);
+ return node_export(core_proxy, node, true, user_data_size);
}