mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
stream: do not call process if the queue is not empty enough
This commit is contained in:
parent
125fcb5660
commit
279e6706b2
1 changed files with 5 additions and 3 deletions
|
|
@ -775,10 +775,12 @@ again:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!impl->draining && !SPA_FLAG_IS_SET(impl->flags, PW_STREAM_FLAG_DRIVER)) {
|
if (!impl->draining &&
|
||||||
|
!SPA_FLAG_IS_SET(impl->flags, PW_STREAM_FLAG_DRIVER) &&
|
||||||
|
io->status == SPA_STATUS_NEED_DATA &&
|
||||||
|
spa_ringbuffer_get_read_index(&impl->queued.ring, &index) < MIN_QUEUED) {
|
||||||
call_process(impl);
|
call_process(impl);
|
||||||
if (spa_ringbuffer_get_read_index(&impl->queued.ring, &index) >= MIN_QUEUED &&
|
if (spa_ringbuffer_get_read_index(&impl->queued.ring, &index) >= MIN_QUEUED)
|
||||||
io->status == SPA_STATUS_NEED_DATA)
|
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
exit:
|
exit:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue