d3d11converter: Fix conversion backend selection

Intended behavior was selecting video processor only if pixel shader
is disabled, since we prefer shader over video processor

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4179>
This commit is contained in:
Seungha Yang 2023-03-16 00:53:31 +09:00 committed by GStreamer Marge Bot
parent 096bd3c4a2
commit e1a73a723f

View file

@ -4145,7 +4145,7 @@ gst_d3d11_converter_convert_buffer_internal (GstD3D11Converter * self,
if (in_d3d11)
piv_available = gst_d3d11_converter_piv_available (self, in_buf);
if ((priv->supported_backend & GST_D3D11_CONVERTER_BACKEND_SHADER) != 0) {
if ((priv->supported_backend & GST_D3D11_CONVERTER_BACKEND_SHADER) == 0) {
/* processor only */
use_processor = TRUE;
} else if (piv_available) {