mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue