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.
This commit is contained in:
Wim Taymans 2021-05-11 13:03:11 +02:00
parent 80cf968ae7
commit 92196787d6

View file

@ -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