[vlc-devel] [PATCH 2/4] direct3d9: don't hold extra references to IDirect3DDevice9

Hannes Domani ssbssa at yahoo.de
Tue Jul 28 18:12:26 CEST 2015


---
 modules/video_output/msw/direct3d9.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_output/msw/direct3d9.c b/modules/video_output/msw/direct3d9.c
index 779b078..95ba1ce 100644
--- a/modules/video_output/msw/direct3d9.c
+++ b/modules/video_output/msw/direct3d9.c
@@ -273,10 +273,6 @@ static void Close(vlc_object_t *object)
 
 static void DestroyPicture(picture_t *picture)
 {
-    LPDIRECT3DDEVICE9 d3ddev;
-    if (!FAILED(IDirect3DSurface9_GetDevice(picture->p_sys->surface, &d3ddev)))
-        IDirect3DDevice9_Release(d3ddev);
-
     IDirect3DSurface9_Release(picture->p_sys->surface);
 
     free(picture->p_sys);
@@ -325,8 +321,6 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
         }
 
         pictures[picture_count] = picture;
-        /* each picture_t holds a ref to the device and release it on Destroy */
-        IDirect3DDevice9_AddRef(vd->sys->d3ddev);
     }
 
     picture_pool_configuration_t pool_cfg;
-- 
2.4.6




More information about the vlc-devel mailing list