From e1a73a723f3e587a89d3e219ae954c3c66926169 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 16 Mar 2023 00:53:31 +0900 Subject: [PATCH] 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: --- .../gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp index cb7584dbfb..22839e8718 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp @@ -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) {