hlsdemux2: Improve media playlist updates
authorEdward Hervey <edward@centricular.com>
Wed, 8 Jun 2022 09:17:09 +0000 (11:17 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 28 Jun 2022 17:59:24 +0000 (17:59 +0000)
commite9f8c7d33a4305ccacd1f7a8c0907a293bfa8042
tree45d66f446071d28d9c4210923d7cdad7165ac195
parent0a658840da1b1e31eed7841fb22ab9edc647876e
hlsdemux2: Improve media playlist updates

* When dealing with rendition streams, we attempt to synchronize the media
  playlist against the variant stream. This helps with speeding up the correct
  initial fragment search and avoids issues when streams at activated at a much
  later time.
* Also add checks for variant stream existence before attempting to use them

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