level: fix level calculations for mutliple channels

This was broken with 7b90bf3215.
This commit is contained in:
Stefan Sauer 2015-08-26 23:16:46 +02:00
parent cac239ab89
commit 6a8194e121

View file

@ -701,7 +701,7 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
filter->decay_peak_age[i] = G_GINT64_CONSTANT (0);
}
}
in_data += block_size * bps;
in_data += block_size * bps * channels;
filter->num_frames += block_size;
num_frames -= block_size;