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