[vlc-commits] direct3d9: don't hold extra references to IDirect3DDevice9

Hannes Domani git at videolan.org
Thu Jul 30 00:25:35 CEST 2015


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Tue Jul 28 18:12:26 2015 +0200| [fe8d35ff96fd1d89c483a7ffe532f2279aab3c14] | committer: Jean-Baptiste Kempf

direct3d9: don't hold extra references to IDirect3DDevice9

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

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

 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;



More information about the vlc-commits mailing list