adaptivedemux2: Fixes for period switching in the output loop
authorJan Schmidt <jan@centricular.com>
Mon, 11 Jul 2022 15:58:30 +0000 (01:58 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 4 Aug 2022 12:43:57 +0000 (13:43 +0100)
commitda65a7b0ba63ddaf52ce7a9cd6ad085b8d5f8e67
treea9d907cd8ffcb87d7a9d3ee3ee1fe00cee708f79
parentde7e2c9b6b8f58aa59ee7377d446deeb980def6b
adaptivedemux2: Fixes for period switching in the output loop

Close some race conditions in switching to the next period,
by ensuring the tracks are completely drained first and by
not outputting EOS events to the output source pad
if there is another period pending.

Fixes Manifest_MultiPeriod_1080p.mpd some more.

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