adaptivedemux2: Check stream selected instead of state
authorJan Schmidt <jan@centricular.com>
Thu, 30 Jun 2022 16:05:36 +0000 (02:05 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 4 Aug 2022 12:43:25 +0000 (13:43 +0100)
commitf33fe73bb7a55486847f738f0c3d375b8cb93fb9
tree4138a50a63ec9a833c44baf544dc72ac9ffdd4fd
parent27d18f35e55d2fcac1f56af459e95f13cc29daeb
adaptivedemux2: Check stream selected instead of state

When combining stream flows, ignore streams that
are not selected, instead of checking whether
the stream state has changed yet.

Fixes another issue with dashdemux2 where it fails to
change to the next period when playing content with
several video, audio and text streams, as with
Manifest_MultiPeriod_1080p.mpd when seeking to 730
just before the end of the first period.

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