From 874b6657102181e626d1fe33ba67a7a2b2e86310 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 18 Nov 2022 04:35:51 +1100 Subject: [PATCH] hlsdemux2: Fill in skipped segments if possible After reloading a playlist using a delta request, use the previous playlist to fill in skipped segments if possible. Part-of: --- .../ext/adaptivedemux2/hls/gsthlsdemux-stream.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c index 2a1ef1893c..53df6ed2e9 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c @@ -1392,6 +1392,13 @@ download_media_playlist (GstHLSDemuxStream * stream, gchar * uri, } } + /* Transfer over any skipped segments from the current playlist if + * we did a delta playlist update */ + if (!playlist_uri_change && current && playlist + && playlist->skipped_segments > 0) { + gst_hls_media_playlist_sync_skipped_segments (playlist, current); + } + out: g_free (uri); g_free (base_uri);