diff --git a/src/pulsecore/play-memchunk.c b/src/pulsecore/play-memchunk.c index a5ba949b5..419d523f3 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