mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -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
|
|
@ -185,6 +185,7 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk
|
|||
pa_memblock_unref(nchunk.memblock);
|
||||
}
|
||||
|
||||
tchunk.length = PA_MIN(nbytes, tchunk.length);
|
||||
pa_assert(tchunk.length > 0);
|
||||
|
||||
fs = pa_frame_size(&i->sample_spec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue