mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
703d29549a
commit
874b665710
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue