From 9192892d0816e7f1779a89a7192b9b676e9020db Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 19 May 2023 18:07:53 +0200 Subject: [PATCH] impl-node: always resume non-driver nodes when finished We don't really have a mechanism to do async resume and OK is now emitted by the filter when nothing happened. --- src/pipewire/impl-node.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pipewire/impl-node.c b/src/pipewire/impl-node.c index 53954b982..bbc452091 100644 --- a/src/pipewire/impl-node.c +++ b/src/pipewire/impl-node.c @@ -1194,15 +1194,13 @@ static inline int process_node(void *data) nsec = get_time_ns(data_system); - pw_log_trace_fp("%p: finished %"PRIu64, this, nsec); + pw_log_trace_fp("%p: finished status:%d %"PRIu64, this, status, nsec); a->status = PW_NODE_ACTIVATION_FINISHED; a->finish_time = nsec; /* we don't need to trigger targets when the node was driving the - * graph because that means we finished the graph. Also don't schedule - * peers when the node returns OK, because that means the resume will - * happen asynchronously later (unimplemented though). */ - if (SPA_LIKELY(!this->driving && status != SPA_STATUS_OK)) + * graph because that means we finished the graph. */ + if (SPA_LIKELY(!this->driving)) trigger_targets(this, status, nsec); if (SPA_UNLIKELY(status & SPA_STATUS_DRAINED))