[vlc-commits] d3d11va: use ReleasePictureSys for d3d11va internal pictures
Steve Lhomme
git at videolan.org
Tue Jun 13 14:59:34 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri May 19 15:44:56 2017 +0200| [49937db89894c0e150d40c9931c551bf6aaf7c16] | committer: Jean-Baptiste Kempf
d3d11va: use ReleasePictureSys for d3d11va internal pictures
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49937db89894c0e150d40c9931c551bf6aaf7c16
---
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);
}
More information about the vlc-commits
mailing list