mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
never hand out more data from a sink input than requested. Otherwise the resampler might run for too long and we get a heavy delay/underrun
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2490 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7297bd91e7
commit
c4f60d5960
4 changed files with 9 additions and 7 deletions
|
|
@ -374,6 +374,8 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t length, pa_memchunk *chunk
|
|||
} else {
|
||||
size_t m;
|
||||
|
||||
chunk->length = PA_MIN(length, chunk->length);
|
||||
|
||||
c->playback.underrun = FALSE;
|
||||
|
||||
pa_memblockq_drop(c->input_memblockq, chunk->length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue