mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
don't free silence memblocks that don't exist
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1910 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
107f12ae3c
commit
584ca6193c
1 changed files with 4 additions and 3 deletions
|
|
@ -540,10 +540,11 @@ void pa_sink_input_drop(pa_sink_input *i, size_t length) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i->thread_info.move_silence <= 0) {
|
if (i->thread_info.move_silence <= 0) {
|
||||||
pa_assert(i->thread_info.silence_memblock);
|
if (i->thread_info.silence_memblock) {
|
||||||
pa_memblock_unref(i->thread_info.silence_memblock);
|
pa_memblock_unref(i->thread_info.silence_memblock);
|
||||||
i->thread_info.silence_memblock = NULL;
|
i->thread_info.silence_memblock = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (length <= 0)
|
if (length <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue