audioaggregator: Reset offset if the output rate is renegotiated
authorSebastian Dröge <sebastian@centricular.com>
Thu, 20 Aug 2020 13:31:38 +0000 (16:31 +0300)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 9 Sep 2020 09:09:17 +0000 (09:09 +0000)
commit1208d4e635f33152fae0903790b2fe4a9172cb57
treef32626bcfb3af57c2f89e783ad992643f20b4a38
parent5bfb438d3b22c23e8ed504aec2ab79981ce81a14
audioaggregator: Reset offset if the output rate is renegotiated

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-libs/gst/audio/gstaudioaggregator.c