From 412c7f4cee57c7cec91ac8119e28b455780781d4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Mar 2019 09:52:40 +0100 Subject: [PATCH] client-node: send own activation to client for stats --- src/modules/module-client-node/client-node.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index 9b0ad234a..d7d7ecc51 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -1243,12 +1243,23 @@ static void client_node_resource_pong(void *data, int seq) void pw_client_node_registered(struct pw_client_node *this, uint32_t node_id) { struct impl *impl = SPA_CONTAINER_OF(this, struct impl, this); + struct pw_node *node = this->node; + struct mem *m; pw_log_debug("client-node %p: %d", this, node_id); pw_client_node_resource_transport(this->resource, node_id, impl->other_fds[0], impl->other_fds[1]); + + m = ensure_mem(impl, node->activation->fd, SPA_DATA_MemFd, node->activation->flags); + + pw_client_node_resource_set_activation(this->resource, + node_id, + impl->other_fds[1], + m->id, + 0, + sizeof(struct pw_node_activation)); } static void node_initialized(void *data)