mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
stream: handle drain from process
When process calls drain, also do one more loop to complete the drain.
This commit is contained in:
parent
486d797735
commit
f96c7ede11
1 changed files with 2 additions and 1 deletions
|
|
@ -857,7 +857,8 @@ again:
|
|||
/* realtime and we don't have a buffer, trigger process and try
|
||||
* again when there is something in the queue now */
|
||||
call_process(impl);
|
||||
if (spa_ringbuffer_get_read_index(&impl->queued.ring, &index) > 0)
|
||||
if (impl->draining ||
|
||||
spa_ringbuffer_get_read_index(&impl->queued.ring, &index) > 0)
|
||||
goto again;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue