From dd5b460daab10fee2a5075140807c5a0ccf63f30 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 26 Jul 2021 15:46:21 +0200 Subject: [PATCH] client-node: remove custom target signal The target signal is called when the peer nodes are ready and this node needs to be scheduled. It is the in-process version of the signal. Remove our custom version that, just like the default version, schedules the node implementation but doesn't do any accounting. Makes pw-top report driver stats for bluetooth devices. Fixes #1450 --- src/modules/module-client-node/client-node.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index 32f93463d..f42a6fae8 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -1657,14 +1657,6 @@ static const struct pw_resource_events resource_events = { .pong = client_node_resource_pong, }; -static int process_node(void *data) -{ - struct impl *impl = data; - struct node *this = &impl->node; - pw_log_trace_fp(NAME " %p: process", this); - return spa_node_process(&this->node); -} - /** Create a new client node * \param client an owner \ref pw_client * \param id an id @@ -1732,9 +1724,6 @@ struct pw_impl_client_node *pw_impl_client_node_new(struct pw_resource *resource this->node->remote = true; this->flags = 0; - this->node->rt.target.signal = process_node; - this->node->rt.target.data = impl; - pw_resource_add_listener(this->resource, &impl->resource_listener, &resource_events,