dashdemux2: Preserve current representation on live manifest updates
authorJan Schmidt <jan@centricular.com>
Sat, 20 Aug 2022 17:37:40 +0000 (03:37 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 5 Sep 2022 16:07:00 +0000 (16:07 +0000)
commit43209d0ee69de5590406f4366ec4c18df8a7db67
tree48494009f14856f58136685babda80ad0fa4f2ed
parent4e25c519defc61b6ce92466d2f6bab5c0258c880
dashdemux2: Preserve current representation on live manifest updates

When updating a manifest during live playback, preserve the current
representation for each stream.

During update_fragment_info, if the current representation changed
because it couldn't be matched, trigger a caps change and new
header download.

This reverts commit e0e1db212fd0df2239583b9099fc4361adeded05
and reapplies "dashdemux: Fix issue when manifest update sets slow start
without passing necessary header & caps changes downstream" with
changes.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2920>
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstdashdemux.c
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstdashdemux.h
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstmpdclient.c
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstmpdclient.h