[vlc-commits] D3D11: fix compilation in DEBUG mode

Jean-Baptiste Kempf git at videolan.org
Wed Jun 17 20:28:32 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 17 20:24:03 2015 +0200| [7b835cf4db87d95cc99383817d18cb6df943e931] | committer: Jean-Baptiste Kempf

D3D11: fix compilation in DEBUG mode

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

 modules/codec/avcodec/d3d11va.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 5c27077..bc85807 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -424,8 +424,8 @@ static int D3dCreateDevice(vlc_va_t *va)
 
 #if defined(NDEBUG) && defined(HAVE_DXGIDEBUG_H)
     HRESULT (WINAPI  * pf_DXGIGetDebugInterface)(const GUID *riid, void **ppDebug);
-    if (sys->dxgidebug_dll) {
-        pf_DXGIGetDebugInterface = (void *)GetProcAddress(sys->dxgidebug_dll, "DXGIGetDebugInterface");
+    if (va->sys->dxgidebug_dll) {
+        pf_DXGIGetDebugInterface = (void *)GetProcAddress(va->sys->dxgidebug_dll, "DXGIGetDebugInterface");
         if (pf_DXGIGetDebugInterface) {
             IDXGIDebug *pDXGIDebug = NULL;
             hr = pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&pDXGIDebug);



More information about the vlc-commits mailing list