From: Lennart Poettering Date: Sun, 5 Aug 2007 11:22:03 +0000 (+0000) Subject: play memchunks completely X-Git-Tag: 1.0_branch~2762^2~1^2~392 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d1eb1bbda22a7648c7e216c98d63cfbcb8829e6;p=profile%2Fivi%2Fpulseaudio.git play memchunks completely git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1576 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/pulsecore/play-memchunk.c b/src/pulsecore/play-memchunk.c index a5ba949..419d523 100644 --- a/src/pulsecore/play-memchunk.c +++ b/src/pulsecore/play-memchunk.c @@ -130,7 +130,7 @@ static void sink_input_drop_cb(pa_sink_input *i, size_t length) { u = MEMCHUNK_STREAM(i->userdata); memchunk_stream_assert_ref(u); - if (length >= u->memchunk.length) { + if (length < u->memchunk.length) { u->memchunk.length -= length; u->memchunk.index += length; } else