mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
properly free memblocks when skipping over them
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1545 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
042cb09394
commit
bbb347fa91
1 changed files with 4 additions and 1 deletions
|
|
@ -475,8 +475,11 @@ void pa_sink_input_drop(pa_sink_input *i, size_t length) {
|
|||
pa_cvolume volume;
|
||||
|
||||
if (pa_sink_input_peek(i, &chunk, &volume) >= 0) {
|
||||
size_t l = chunk.length;
|
||||
size_t l;
|
||||
|
||||
pa_memblock_unref(chunk.memblock);
|
||||
|
||||
l = chunk.length;
|
||||
if (l > length)
|
||||
l = length;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue