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.
This commit is contained in:
Georg Chini 2015-01-31 22:05:27 +01:00 committed by Tanu Kaskinen
parent a4c600e375
commit d6ef0ec3dc

View file

@ -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_source_output_assert_io_context(o);
pa_assert_se(u = o->userdata); pa_assert_se(u = o->userdata);
if (u->skip > chunk->length) { if (u->skip >= chunk->length) {
u->skip -= chunk->length; u->skip -= chunk->length;
return; return;
} }