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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
Jan Schmidt 2022-11-18 04:35:51 +11:00 committed by GStreamer Marge Bot
parent 703d29549a
commit 874b665710

View file

@ -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: out:
g_free (uri); g_free (uri);
g_free (base_uri); g_free (base_uri);