decodebin2: Do not fail if one of the decoders isn't able to output the requested...
authorThibault Saunier <tsaunier@igalia.com>
Fri, 9 Sep 2022 20:57:18 +0000 (16:57 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Sep 2022 21:03:14 +0000 (21:03 +0000)
commite866c1d96706274171b927cbdef17fb93c058370
tree1d4c341d446fdb80562e511264a38045236e7eab
parent339e5916c6cdfb959e2edb665a55213ed10cf156
decodebin2: Do not fail if one of the decoders isn't able to output the requested format

when expose-all=False

When trying to find an decoder in that case, we loop over the different
decoder factories, and check that it outputs a format that matches the
requested one (through the :caps property), but if we find a decoder
that do match but later on some other don't we end up failing
autopluging. This patch ensures that we still plug the decoder that can
work.

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