[pulseaudio-commits] r1167 - /trunk/src/pulsecore/play-memblockq.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Jul 29 08:04:17 PDT 2006


Author: lennart
Date: Sat Jul 29 17:04:17 2006
New Revision: 1167

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1167&root=pulseaudio&view=rev
Log:
free the memblockq if we decide not to play it

Modified:
    trunk/src/pulsecore/play-memblockq.c

Modified: trunk/src/pulsecore/play-memblockq.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/play-memblockq.c?rev=1167&root=pulseaudio&r1=1166&r2=1167&view=diff
==============================================================================
--- trunk/src/pulsecore/play-memblockq.c (original)
+++ trunk/src/pulsecore/play-memblockq.c Sat Jul 29 17:04:17 2006
@@ -92,11 +92,15 @@
     assert(ss);
     assert(q);
 
-    if (pa_memblockq_get_length(q) <= 0)
+    if (pa_memblockq_get_length(q) <= 0) {
+        pa_memblockq_free(q);
         return 0;
+    }
 
-    if (cvolume && pa_cvolume_is_muted(cvolume))
+    if (cvolume && pa_cvolume_is_muted(cvolume)) {
+        pa_memblockq_free(q);
         return 0;
+    }
 
     if (!(si = pa_sink_input_new(sink, name, __FILE__, ss, map, cvolume, 0, PA_RESAMPLER_INVALID)))
         return -1;




More information about the pulseaudio-commits mailing list