[vlc-commits] D3D11: rework cleaning

Jean-Baptiste Kempf git at videolan.org
Thu May 12 16:41:30 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May 12 16:35:26 2016 +0200| [3e5d368865d6efba46d29055029330cc5d43fc2e] | committer: Jean-Baptiste Kempf

D3D11: rework cleaning

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

 modules/video_output/win32/direct3d11.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 91e8bcb..c140a32 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -428,11 +428,9 @@ static int Open(vlc_object_t *object)
     msg_Dbg(vd, "Direct3D11 Open Succeeded");
 
     return VLC_SUCCESS;
+
 error:
-    Direct3D11Close(vd);
-    CommonClean(vd);
-    Direct3D11Destroy(vd);
-    free(vd->sys);
+    Close(object);
     return VLC_EGENERIC;
 }
 
@@ -852,8 +850,6 @@ static void Direct3D11Destroy(vout_display_t *vd)
     if (sys->hd3dcompiler_dll)
         FreeLibrary(sys->hd3dcompiler_dll);
 
-    /* TODO : add release of d3d11 objects here */
-
     sys->OurD3D11CreateDevice = NULL;
     sys->OurD3D11CreateDeviceAndSwapChain = NULL;
     sys->OurD3DCompile = NULL;



More information about the vlc-commits mailing list