audioaggregator: move comment to the place it is meant to be

This probably got shifted after some changes.
This commit is contained in:
Stefan Sauer 2017-10-05 20:48:59 +02:00
parent 1b84283396
commit bd34243177

View file

@ -1181,9 +1181,6 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout)
rate, GST_SECOND); rate, GST_SECOND);
blocksize = MAX (1, blocksize); blocksize = MAX (1, blocksize);
/* for the next timestamp, use the sample counter, which will
* never accumulate rounding errors */
/* FIXME: Reverse mixing does not work at all yet */ /* FIXME: Reverse mixing does not work at all yet */
if (agg->segment.rate > 0.0) { if (agg->segment.rate > 0.0) {
next_offset = aagg->priv->offset + blocksize; next_offset = aagg->priv->offset + blocksize;
@ -1191,6 +1188,7 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout)
next_offset = aagg->priv->offset - blocksize; next_offset = aagg->priv->offset - blocksize;
} }
/* Use the sample counter, which will never accumulate rounding errors */
next_timestamp = next_timestamp =
agg->segment.start + gst_util_uint64_scale (next_offset, GST_SECOND, agg->segment.start + gst_util_uint64_scale (next_offset, GST_SECOND,
rate); rate);