adaptivedemux2: Don't allow stream selection while switching periods
authorEdward Hervey <edward@centricular.com>
Mon, 5 Dec 2022 09:55:57 +0000 (10:55 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 5 Dec 2022 11:03:26 +0000 (11:03 +0000)
commit63b598b40955b49e30ce0be5fc48f641884410e9
tree1c18afbb7505e53c6c44d5a50b025b5c7f82e2a3
parentdf311a65daeb6b1bb5b6be467f9cdf683d061e91
adaptivedemux2: Don't allow stream selection while switching periods

The stream selection is done on the currently outputting tracks, but in order to
(de)activate the backing streams we can only do it if the input and output
period are identical.

Fixes crash when doing stream selection during period migration

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