[pulseaudio-commits] r1910 - /branches/lennart/src/pulsecore/sink-input.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Sep 27 17:30:49 PDT 2007
Author: lennart
Date: Fri Sep 28 02:30:48 2007
New Revision: 1910
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1910&root=pulseaudio&view=rev
Log:
don't free silence memblocks that don't exist
Modified:
branches/lennart/src/pulsecore/sink-input.c
Modified: branches/lennart/src/pulsecore/sink-input.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/sink-input.c?rev=1910&root=pulseaudio&r1=1909&r2=1910&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/sink-input.c (original)
+++ branches/lennart/src/pulsecore/sink-input.c Fri Sep 28 02:30:48 2007
@@ -540,9 +540,10 @@
}
if (i->thread_info.move_silence <= 0) {
- pa_assert(i->thread_info.silence_memblock);
- pa_memblock_unref(i->thread_info.silence_memblock);
- i->thread_info.silence_memblock = NULL;
+ if (i->thread_info.silence_memblock) {
+ pa_memblock_unref(i->thread_info.silence_memblock);
+ i->thread_info.silence_memblock = NULL;
+ }
}
if (length <= 0)
More information about the pulseaudio-commits
mailing list