[vlc-commits] dxva2: fix the DeviceManager creation when in direct rendering

Steve Lhomme git at videolan.org
Thu Jan 21 17:50:50 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Thu Jan 21 17:41:32 2016 +0100| [6bcacc0cac2201cf927e43cac4c19b8cad2a796d] | committer: Jean-Baptiste Kempf

dxva2: fix the DeviceManager creation when in direct rendering

Using HW rendering was failing with D3D9 vout because of this.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/avcodec/dxva2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 643c000..041843c 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -352,7 +352,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     if (p_sys!=NULL)
         IDirect3DSurface9_GetDevice(p_sys->surface, (IDirect3DDevice9**) &dx_sys->d3ddev );
 
-    err = directx_va_Open(va, &sys->dx_sys, ctx, fmt, dx_sys->d3ddev==NULL);
+    err = directx_va_Open(va, &sys->dx_sys, ctx, fmt, true);
     if (err!=VLC_SUCCESS)
         goto error;
 



More information about the vlc-commits mailing list