mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 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
|
|
@ -138,6 +138,7 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk
|
|||
return -1;
|
||||
}
|
||||
|
||||
chunk->length = PA_MIN(chunk->length, nbytes);
|
||||
pa_memblockq_drop(u->memblockq, chunk->length);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue