From 7edcfad7db290a7937e31a390c05dfc257d81e06 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 3 May 2023 10:42:28 +0200 Subject: [PATCH] impl-node: process_node now always run on the implementer process_node is now always called on the process that implements the process function and so we can always fill in the finish_time. --- src/pipewire/impl-node.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pipewire/impl-node.c b/src/pipewire/impl-node.c index 41e2d5dcb..3c2ff7a92 100644 --- a/src/pipewire/impl-node.c +++ b/src/pipewire/impl-node.c @@ -1179,11 +1179,10 @@ static inline int process_node(void *data) nsec = get_time_ns(data_system); - if (!this->remote) { - pw_log_trace_fp("%p: finished", this); - a->status = PW_NODE_ACTIVATION_FINISHED; - a->finish_time = nsec; - } + pw_log_trace_fp("%p: finished %"PRIu64, this, nsec); + a->status = PW_NODE_ACTIVATION_FINISHED; + a->finish_time = nsec; + if (!this->driving && status != SPA_STATUS_OK) resume_node(this, status, nsec);