From 6189bf1e731a03e58e25a8154d631137f7242ca2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 16 Sep 2024 18:35:08 +0200 Subject: [PATCH] stream: only call early process for output streams Input driver streams don't need their process callback called before starting the graph, they will get their process callback called at the end of the graph cycle. We were doing this for the rt case fine but not for the non-rt case. --- src/pipewire/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 25df78a96..1eed773da 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -2594,7 +2594,7 @@ int pw_stream_trigger_process(struct pw_stream *stream) if (impl->trigger) { pw_impl_node_trigger(stream->node); } else if (impl->driving) { - if (!impl->process_rt) + if (impl->direction == SPA_DIRECTION_OUTPUT && !impl->process_rt) call_process(impl); res = pw_loop_invoke(impl->data_loop, do_trigger_driver, 1, NULL, 0, false, impl);