[vlc-commits] d3d11_surface: don't allow any GPU>CPU conversion other than D3D11 opaque chromas

Steve Lhomme git at videolan.org
Tue Oct 15 09:56:41 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 15 08:54:36 2019 +0200| [0cdfff34d62f7eb85e10930bf39d842ff47e2909] | committer: Steve Lhomme

d3d11_surface: don't allow any GPU>CPU conversion other than D3D11 opaque chromas

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0cdfff34d62f7eb85e10930bf39d842ff47e2909
---

 modules/hw/d3d11/d3d11_surface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index c8f456df7c..5fb048ed14 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -612,7 +612,7 @@ int D3D11OpenConverter( vlc_object_t *obj )
 {
     filter_t *p_filter = (filter_t *)obj;
 
-    if ( is_d3d11_opaque(p_filter->fmt_in.video.i_chroma) )
+    if ( !is_d3d11_opaque(p_filter->fmt_in.video.i_chroma) )
         return VLC_EGENERIC;
 
     if ( p_filter->fmt_in.video.i_visible_height != p_filter->fmt_out.video.i_visible_height



More information about the vlc-commits mailing list