Backport of "hlsdemux2: Various fixes" into 1.24
requested to merge gstreamer-backport-bot/gstreamer:mr-6610-backport-into-1.24-hlsdemux2-lost-sync into 1.24
Backport of !6610 (merged) "hlsdemux2: Various fixes".
Commits:
- 81c42ee1 hlsdemux2: Fix getting starting segment on live playlists
- 7d49b1cc adaptivedemux2: Only set DISCONT on beginning of fragments
- 836bca46 hlsdemux2: Fix handling of variant switching and playlist updates
- 8b6e7a01 hlsdemux2: Ensure a discont will be set when resetting for lost sync
- d2b3262b hlsdemux2: Increase tolerance for discontinuity detection
- 9a7f455a hlsdemux2: Fix parsing of EXT-X-DISCONTINUITY-SEQUENCE:0
- 3e810a67 hlsdemux2: Refactor update of GstHLSTimeMap values
- 81fd460c hlsdemux2: Fix failure to find a replacement segment on resync
- 5bc9883d hlsdemux2: Be more tolerant when matching segments with PDT
- c924e4cc hlsdemux2: Minor refactoring of starting segment check