mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 11:53:16 +00:00
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:
parent
80cf968ae7
commit
92196787d6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue