hlsdemux2: Handle loss of synchronization in live
authorEdward Hervey <edward@centricular.com>
Fri, 8 Jul 2022 08:44:51 +0000 (10:44 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 4 Aug 2022 13:49:27 +0000 (14:49 +0100)
commit9ca1dcd5634595434f4a0071f40f5ae78667dc2d
treea993ce03e2b44ef2ebe0bf9c15abd98f9e6dd781
parentabe5a06421f294f10bb468045d0b54d9beb7293a
hlsdemux2: Handle loss of synchronization in live

Loss of synchronization happens when the updated media playlist has no
relationship to the previous ones. This could happen because of network issues,
server issues, etc...

When this happens, we take no chance and "reset" ourselves so that we can "seek
back to live" against the new updated playlists.

Since this happens at the "media playlist update" level, make sure the custom
flow return is propagated up.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2839>
subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c