va: vpp: Fix features lost in transform_caps().
authorHe Junyan <junyan.he@intel.com>
Sun, 14 Mar 2021 16:04:21 +0000 (00:04 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 17 Mar 2021 09:25:11 +0000 (10:25 +0100)
commit805ff6346ac186eeef9b269711d034ba864b006d
treea97362af10afb996b467c1068a3939d7bc2aeece
parent8a0224a19841264f2c59dc78d92be9e2bcec074d
va: vpp: Fix features lost in transform_caps().

When we transform the caps from the sink to src, or vice versa, the
"caps" passed to us may only contain parts of the features. Which
makes our vpp lose some feature in caps and get a negotiation error.
The correct way should be:
Cleaning the format and resolution of that caps, but adding all VA,
DMA features to it, making it a full feature caps. Then, clipping it
with the pad template.

fixes: #1551

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2081>
sys/va/gstvavpp.c