switchbin: Don't report sink pad caps for src pad queries.
authorJan Schmidt <jan@centricular.com>
Tue, 16 Feb 2021 04:00:07 +0000 (15:00 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Apr 2021 14:27:00 +0000 (14:27 +0000)
commit1f865246c113c359160b5e8879bc582f64b896f9
treef2bee8c1315b2bf5c71effdfb2e3cb134e2c3bc9
parent891be511057dbcdf1f38740e55cbd376c4b25894
switchbin: Don't report sink pad caps for src pad queries.

When handling a caps query on the src pad, don't return the union
of input caps. Even when not active, a path element can be queried
for srcpad template caps, or for dropping paths the allowed downstream
caps is anything - as data will be dropped anyway.

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