adaptivedemux2: Handle synchronously to lost sync
authorEdward Hervey <edward@centricular.com>
Fri, 8 Jul 2022 08:40:33 +0000 (10:40 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 4 Aug 2022 13:49:27 +0000 (14:49 +0100)
commitabe5a06421f294f10bb468045d0b54d9beb7293a
treeef5922f24e52ab13eda185078a79acc70ab3f70e
parent1aab9db8038190d61a173d279add6e974669a541
adaptivedemux2: Handle synchronously to lost sync

We are already in the main scheduler thread, therefore we can do the "seek back
to live" directly. This also avoids other pending actions to take place.

Also handle the loss of sync when doing manifest updates.

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