hlsdemux2: m3u8: Use PDT to offset stream time when aligning playlist
authorJan Schmidt <jan@centricular.com>
Thu, 27 Oct 2022 12:57:58 +0000 (23:57 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Nov 2022 13:04:44 +0000 (13:04 +0000)
commit4a8805ade7a04cab875c55acd7cf1c417efc29da
tree7cc1bf15a32f2f40d249eef5cb727f234b2d0342
parent6af37695111196e81d3ee136e062b8d90828953d
hlsdemux2: m3u8: Use PDT to offset stream time when aligning playlist

When matching segments across playlists with Program-Date-Times,
use the difference in segment PDTs to adjust the stream time
that's being transferred. This can fix cases where the
segment boundaries don't align across different streams
and the first download gets thrown away once the PTS
is seen and found not to match.

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