[vlc-commits] vout:win32:common: no need to trace DXGI leaks here

Steve Lhomme git at videolan.org
Tue Dec 5 11:45:28 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Dec  5 11:39:33 2017 +0100| [1bdd867e6ba49c66ac4748747f4fd828f5a98f41] | committer: Jean-Baptiste Kempf

vout:win32:common: no need to trace DXGI leaks here

It's already done in modules using DXGI

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

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

 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 83807a4fad..1993cebb5b 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -46,11 +46,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);
@@ -352,21 +347,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)



More information about the vlc-commits mailing list