On next aggregation the new offset will be calculated based on the
segment position.
Without this a rate change would cause a jump forwards or backwards in
the output timeline.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/794>
GST_INFO_OBJECT (aagg, "setting caps to %" GST_PTR_FORMAT, caps);
gst_caps_replace (&aagg->current_caps, caps);
+ if (old_info.rate != info.rate)
+ aagg->priv->offset = -1;
+
memcpy (&srcpad->info, &info, sizeof (info));
gst_audio_aggregator_update_converters (aagg, &info, &old_info);