hlsdemux2: Fix position tracking
authorEdward Hervey <edward@centricular.com>
Tue, 17 May 2022 05:16:48 +0000 (07:16 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 28 Jun 2022 17:59:23 +0000 (17:59 +0000)
commit5271603852b732b469efe419b29b1b1535a8b76c
treef17e7193b992b80ed73304057e5113691d6bdaca
parent8fd2dcd266b3c359ecb3d86a69cc93585380f25e
hlsdemux2: Fix position tracking

Remove the "pending advance" hack and instead rely on the base stream current
position to track our position (instead of a potentially NULL "current
segment").

Also ensure the media playlists are always refreshed with valid stream time,
even if there is no current segment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2679>
subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c
subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.h