dashdemux2: Fix the way we determine current_position after seeks
authorThibault Saunier <tsaunier@igalia.com>
Tue, 4 Oct 2022 21:21:15 +0000 (18:21 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 27 Oct 2022 19:45:44 +0000 (19:45 +0000)
commit1c1b0380cb4f544ebeca530d47d6fb2471818e9c
tree53e928de9cfc4315337f8fa3480e9b0cbf5be113
parent4f991a55afde241f39e01e65341404cdcf70819c
dashdemux2: Fix the way we determine current_position after seeks

Without that the current_position was off after seeks, potentially
leading to not properly push a last fragment when a `.stop` time was
set.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3159>
subprojects/gst-integration-testsuites/medias
subprojects/gst-integration-testsuites/testsuites/validate.testslist
subprojects/gst-integration-testsuites/testsuites/validate/dash/seek_with_stop_between_fragments.validatetest [new file with mode: 0644]
subprojects/gst-integration-testsuites/testsuites/validate/dash/seek_with_stop_between_fragments/flow-expectations/log-i-sink-expected [new file with mode: 0644]
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstdashdemux.c
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c