audioaggregator: move comment to the place it is meant to be
authorStefan Sauer <ensonic@users.sf.net>
Thu, 5 Oct 2017 18:48:59 +0000 (20:48 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Sat, 14 Oct 2017 16:20:30 +0000 (18:20 +0200)
This probably got shifted after some changes.

gst-libs/gst/audio/gstaudioaggregator.c

index 3447d08..d126bb1 100644 (file)
@@ -1181,9 +1181,6 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout)
       rate, GST_SECOND);
   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 */
   if (agg->segment.rate > 0.0) {
     next_offset = aagg->priv->offset + blocksize;
@@ -1191,6 +1188,7 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout)
     next_offset = aagg->priv->offset - blocksize;
   }
 
+  /* Use the sample counter, which will never accumulate rounding errors */
   next_timestamp =
       agg->segment.start + gst_util_uint64_scale (next_offset, GST_SECOND,
       rate);