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
This commit is contained in:
Wim Taymans 2021-07-26 15:46:21 +02:00
parent 9f6890e10e
commit dd5b460daa

View file

@ -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,