adaptivedemux2: Always check bitrate in live
authorJan Schmidt <jan@centricular.com>
Mon, 12 Sep 2022 14:56:53 +0000 (00:56 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Sep 2022 09:02:43 +0000 (09:02 +0000)
commite5e72ede267bfbc72a3af50fbc07957c20b022ea
tree73bd1cf4f242c77c6d86a09826b4640ac2e84b43
parent5666debd5f4c76dc5d0fb1ab90ece963a68f3492
adaptivedemux2: Always check bitrate in live

When advancing fragment in live, it's normal to return
GST_FLOW_EOS when playing at the live edge of the available
fragments. In that case, we still want to adjust bitrate
dynamically.

Fixes issue with dashdemux2 where the current bitrate of
each adaptation set is changed to the lowest one when
updating the mpd for a live stream.

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