mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
stream: only try to send again when needed
We should only try to send data when the process call prepared new data for us and we didn't already have data.
This commit is contained in:
parent
5a1bd77fb5
commit
3fdeb64ddb
1 changed files with 2 additions and 1 deletions
|
|
@ -769,7 +769,8 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
} else {
|
||||
if (!SPA_FLAG_CHECK(impl->flags, PW_STREAM_FLAG_DRIVER)) {
|
||||
call_process(impl);
|
||||
if (spa_ringbuffer_get_read_index(&impl->queued.ring, &index) > 0)
|
||||
if (spa_ringbuffer_get_read_index(&impl->queued.ring, &index) > 0 &&
|
||||
io->status == SPA_STATUS_NEED_BUFFER)
|
||||
goto again;
|
||||
}
|
||||
res = io->status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue