mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 14:18:34 +00:00
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:
parent
9ca1dcd563
commit
6a9bdceb5e
1 changed files with 4 additions and 2 deletions
|
@ -2149,10 +2149,12 @@ gst_hls_demux_stream_update_media_playlist (GstHLSDemux * demux,
|
|||
gst_hls_media_playlist_unref (stream->playlist);
|
||||
stream->playlist = new_playlist;
|
||||
} else {
|
||||
if (stream->is_variant) {
|
||||
GST_DEBUG_OBJECT (stream, "Setting up initial playlist");
|
||||
stream->playlist = new_playlist;
|
||||
setup_initial_playlist (demux, new_playlist);
|
||||
}
|
||||
stream->playlist = new_playlist;
|
||||
}
|
||||
|
||||
if (stream->is_variant) {
|
||||
/* Update time mappings. We only use the variant stream for collecting
|
||||
|
|
Loading…
Reference in a new issue