va: basedec: fallback to system memory if downstream caps is any.
authorHe Junyan <junyan.he@intel.com>
Mon, 16 Nov 2020 15:53:39 +0000 (23:53 +0800)
committerHe Junyan <junyan.he@intel.com>
Mon, 16 Nov 2020 17:21:45 +0000 (01:21 +0800)
commit672a30d0def1f02b6911892ddd4dfc854e1727d3
tree72268e4c87c313201c4d25644e3be0dcf187c7c2
parentd3d2af6c84446cffcd041f76baa8781b1a560eca
va: basedec: fallback to system memory if downstream caps is any.

When the downstream element reports an ANY caps, and it also fails to
support VideoMeta, we should fallback to the system memory.
Note: the basetransform kind elements never return valid allocation
query before set_caps(). So, if a basetransform return an ANY sink
caps, we always fallback to system memory for it.

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