hlsdemux2: Fix initial playlist setup.

There is now only a single case where we setup the initial playlist to 0, which
is for the very first variant stream.

Rendition streams will have the initial playlist "synchronized" against the
variant stream media playlist.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2839>
This commit is contained in:
Edward Hervey 2022-07-08 10:48:05 +02:00 committed by Tim-Philipp Müller
parent 9ca1dcd563
commit 6a9bdceb5e

View file

@ -2149,9 +2149,11 @@ gst_hls_demux_stream_update_media_playlist (GstHLSDemux * demux,
gst_hls_media_playlist_unref (stream->playlist);
stream->playlist = new_playlist;
} else {
GST_DEBUG_OBJECT (stream, "Setting up initial playlist");
if (stream->is_variant) {
GST_DEBUG_OBJECT (stream, "Setting up initial playlist");
setup_initial_playlist (demux, new_playlist);
}
stream->playlist = new_playlist;
setup_initial_playlist (demux, new_playlist);
}
if (stream->is_variant) {