decodebin3: Unify collection switching checks
authorEdward Hervey <bilboed@bilboed.com>
Fri, 22 Nov 2024 10:50:05 +0000 (11:50 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 25 Nov 2024 16:26:35 +0000 (16:26 +0000)
commitb311270d1d74863b6303f609ac1d2b0194877115
tree0d72600aa74742a8bd2331253afbff185da5f0ea
parent5fdcddc03994232c8c5d0d3d401a0421fe596185
decodebin3: Unify collection switching checks

We only want to switch to a selection of an output collection if all streams are
present.

This was previously only done in one place (when triggering by new incoming
streams) but not when triggered by user/application.

Avoid this by moving the check to handle_stream_switch()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7956>
subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c