From 92196787d6468dc0c7507cd469f8678c6f29c725 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 11 May 2021 13:03:11 +0200 Subject: [PATCH] stream: only trigger in queue when capturing When we are a driver source, we can start processing of the graph when we queue a buffer. Don't do this when we are a driver sink. --- src/pipewire/stream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 617a20b07..91aca20e4 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -1987,7 +1987,10 @@ int pw_stream_queue_buffer(struct pw_stream *stream, struct pw_buffer *buffer) if ((res = push_queue(impl, &impl->queued, b)) < 0) return res; - return call_trigger(impl); + if (impl->direction == SPA_DIRECTION_OUTPUT) + res = call_trigger(impl); + + return res; } static int