[vlc-devel] [PATCH 3/3] vout:win32:common: no need to trace DXGI leaks here

Steve Lhomme robux4 at videolabs.io
Tue Dec 5 11:39:33 CET 2017


It's already done in modules using DXGI
---
 modules/video_output/win32/common.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 1db0c69d20..f4954a9fdb 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -48,11 +48,6 @@
 #include "common.h"
 #include "../video_chroma/copy.h"
 
-#if !defined(NDEBUG) && defined(HAVE_DXGIDEBUG_H)
-# include <initguid.h>
-# include <dxgidebug.h>
-#endif
-
 static void CommonChangeThumbnailClip(vout_display_t *, bool show);
 #if !VLC_WINSTORE_APP
 static int  CommonControlSetFullscreen(vout_display_t *, bool is_fullscreen);
@@ -354,21 +349,6 @@ void CommonClean(vout_display_t *vd)
     }
 
     RestoreScreensaver(vd);
-
-#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 (pf_DXGIGetDebugInterface) {
-            IDXGIDebug *pDXGIDebug = NULL;
-            HRESULT hr = pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&pDXGIDebug);
-            if (SUCCEEDED(hr) && pDXGIDebug) {
-                hr = IDXGIDebug_ReportLiveObjects(pDXGIDebug, DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
-            }
-        }
-        FreeLibrary(sys->dxgidebug_dll);
-    }
-#endif
 }
 
 void CommonManage(vout_display_t *vd)
-- 
2.14.2



More information about the vlc-devel mailing list