uridecodebin3: Fix handling of "expected" pads
authorEdward Hervey <edward@centricular.com>
Thu, 29 Dec 2022 15:02:38 +0000 (16:02 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 30 Dec 2022 07:46:14 +0000 (08:46 +0100)
commit66b96baf231d5d6c84a9307d328a8cc936f281fe
tree2c77d1b0c4190e5ce66ef25fef4adb4359eeb127
parent80e7c3151482f860e03345843c371442491a36c1
uridecodebin3: Fix handling of "expected" pads

The number of expected pads was:
* Defaulting to 1
* Or being overriden by GST_MESSAGE_STREAMS_SELECTED

This fails if upstream isn't a selectable source and has multiple streams, and
would therefore cause failures with multi-stream gapless playback

Fixes #1672

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