[vlc-commits] d3d11_fmt: only list the remaining objects before unloading the DLLs

Steve Lhomme git at videolan.org
Mon May 28 13:25:25 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Nov 24 08:25:13 2017 +0100| [97db6a846ba8cf04af548b59aa8f9ea77cd877f0] | committer: Steve Lhomme

d3d11_fmt: only list the remaining objects before unloading the DLLs

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

 modules/video_chroma/d3d11_fmt.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 8f47a32f80..57f4ef2a50 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -613,7 +613,13 @@ int D3D11_Create(vlc_object_t *obj, d3d11_handle_t *hd3d, bool with_shaders)
             return VLC_EGENERIC;
         }
     }
+#endif
+    return VLC_SUCCESS;
+}
 
+void D3D11_Destroy(d3d11_handle_t *hd3d)
+{
+#if !VLC_WINSTORE_APP
 # if !defined(NDEBUG) && defined(HAVE_DXGIDEBUG_H)
     if (IsDebuggerPresent())
     {
@@ -629,13 +635,6 @@ int D3D11_Create(vlc_object_t *obj, d3d11_handle_t *hd3d, bool with_shaders)
         }
     }
 # endif
-#endif
-    return VLC_SUCCESS;
-}
-
-void D3D11_Destroy(d3d11_handle_t *hd3d)
-{
-#if !VLC_WINSTORE_APP
     if (hd3d->hdll)
         FreeLibrary(hd3d->hdll);
 



More information about the vlc-commits mailing list