switchbin: When collecting srcpad caps, don't intersect with path caps.
authorJan Schmidt <jan@centricular.com>
Wed, 24 Feb 2021 18:04:00 +0000 (05:04 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Apr 2021 14:27:00 +0000 (14:27 +0000)
commitbd9f675318b74b4450c8e1eca02aed0a45aaa1c6
tree4b5825df7ab241491cab850a507e7b981f01286c
parent1f865246c113c359160b5e8879bc582f64b896f9
switchbin: When collecting srcpad caps, don't intersect with path caps.

The path caps describe the input caps that will select each path, don't
intersect those with the srcpad caps, which could be completely
different. Instead, when querying allowed caps for the srcpad, just
construct the union of all possible output caps from all path srcpads.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2018>
gst/switchbin/gstswitchbin.c