diff --git a/src/pulsecore/mix.c b/src/pulsecore/mix.c index 861f76b78..c66a2ec9b 100644 --- a/src/pulsecore/mix.c +++ b/src/pulsecore/mix.c @@ -641,9 +641,8 @@ size_t pa_mix( } for (k = 0; k < nstreams; k++) { + pa_assert(length <= streams[k].chunk.length); streams[k].ptr = pa_memblock_acquire_chunk(&streams[k].chunk); - if (length > streams[k].chunk.length) - length = streams[k].chunk.length; } calc_stream_volumes_table[spec->format](streams, nstreams, volume, spec);