From 1b8af9820893ce3890683a0f0fe67d1e9166bfb9 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 7 Aug 2022 14:28:38 +1000 Subject: [PATCH] hlsdemux2: Recalculate partial segments in anchor segment When recalculating the partial segment stream times in gst_hls_media_playlist_recalculate_stream_time(), don't miss the anchor segment itself. Part-of: --- subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c index 1f711c1b3b..deeebf15b1 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c @@ -1342,6 +1342,7 @@ gst_hls_media_playlist_recalculate_stream_time (GstHLSMediaPlaylist * playlist, GST_DEBUG ("Re-calculating stream times from segment #%d %" GST_TIME_FORMAT, idx, GST_TIME_ARGS (anchor->stream_time)); + gst_m3u8_media_segment_fill_partial_stream_times (anchor); /* Forward */ prev = anchor;