mix: Length over all chunk has already been computed by the caller

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
Peter Meerwald 2014-11-02 17:37:04 +01:00
parent 3963fc5e5b
commit b5b4a1078c

View file

@ -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);