[vlc-devel] [PATCH 05/39] d3d11va: use ReleasePictureSys for d3d11va internal pictures

Steve Lhomme robux4 at videolabs.io
Fri Jun 2 16:46:08 CEST 2017


---
 modules/codec/avcodec/d3d11va.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 84f997649d..b9f8d051f5 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -1104,10 +1104,7 @@ static void DxDestroySurfaces(vlc_va_t *va)
 static void DestroyPicture(picture_t *picture)
 {
     picture_sys_t *p_sys = picture->p_sys;
-    ID3D11Texture2D_Release( p_sys->texture[KNOWN_DXGI_INDEX] );
-    if (p_sys->processorInput)
-        ID3D11VideoProcessorInputView_Release( p_sys->processorInput );
-
+    ReleasePictureSys(p_sys);
     free(p_sys);
     free(picture);
 }
-- 
2.12.1



More information about the vlc-devel mailing list