vaapidecode,vaapipostproc: Disable DMAbuf from caps negotiation
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 20 May 2022 07:59:58 +0000 (09:59 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 12 Jul 2023 23:23:55 +0000 (01:23 +0200)
commit825ac9a77e02967fd69fa8bb160547e35b8880ef
treeeb824c16102c9273cace14d0daf3d5e21bfb4ca4
parente7724ecf0be2d516071a72bfb4707cbfd64c046d
vaapidecode,vaapipostproc: Disable DMAbuf from caps negotiation

Given the amount of complains about artifacts when negotiating dmabuf
given incompatible drm-formats, and that there's no enough bandwidth
for a proper and quick fix in gstreamer-vaapi, this patch disables,
from decoders and postprocessor, the DMABuf caps feature.

For those who needs DMABuf can use the va elements in -bad, increasing
their ranking for autoplugging by using the environment variable
GST_PLUGIN_FEATURE_RANK=vah264dec:MAX, for example.

This can be considered a first step to the deprecation of
gstreamer-vaapi in favor of the va plugin in -bad.

Fixes: #1137
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5029>
subprojects/gstreamer-vaapi/gst/vaapi/gstvaapidecode.c
subprojects/gstreamer-vaapi/gst/vaapi/gstvaapipostproc.c