impl-node: call process_node directly

Don't go through the signal_func when we need to complete the graph
or when we need to process the node, do directly to process_node.

The signal_func is really only for nodes activating peers.
This commit is contained in:
Wim Taymans 2023-05-01 13:42:50 +02:00
parent adb7559359
commit b1a80a8f46

View file

@ -1196,7 +1196,7 @@ static void node_on_fd_events(struct spa_source *source)
this->name, this->info.id, cmd - 1); this->name, this->info.id, cmd - 1);
pw_log_trace_fp("%p: got process", this); pw_log_trace_fp("%p: got process", this);
this->rt.target.signal_func(this->rt.target.data); process_node(this);
} }
} }
@ -1679,7 +1679,7 @@ static int node_ready(void *data, int status)
state->pending, state->required); state->pending, state->required);
dump_states(node); dump_states(node);
} }
node->rt.target.signal_func(node->rt.target.data); process_node(node);
} else { } else {
/* calculate CPU time */ /* calculate CPU time */
uint64_t new_signal = a->signal_time; uint64_t new_signal = a->signal_time;