[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Mon Feb 2 03:20:26 PST 2015


 src/modules/module-loopback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d6ef0ec3dc40e84ab29037ba8817eec0ebfd8720
Author: Georg Chini <georg at chini.tk>
Date:   Sat Jan 31 22:05:27 2015 +0100

    loopback: Don't push zero-sized block to memblockq
    
    During my work on module-loopback I found a bug that sometimes crashes pulse when
    module-loopback is loaded due to pushing a zero-length block into the memblockq.
    As there is a one-line fix I thought you might want it for 6.0.

diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index e17051a..7e2b92a 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -272,7 +272,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
     pa_source_output_assert_io_context(o);
     pa_assert_se(u = o->userdata);
 
-    if (u->skip > chunk->length) {
+    if (u->skip >= chunk->length) {
         u->skip -= chunk->length;
         return;
     }



More information about the pulseaudio-commits mailing list