[vlc-commits] dxva2: add logs about reference counters
Steve Lhomme
git at videolan.org
Tue Jan 16 16:36:55 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 16 13:45:11 2018 +0100| [24482ce50b26b3e743ada71d159d8d12b2fceb9a] | committer: Steve Lhomme
dxva2: add logs about reference counters
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24482ce50b26b3e743ada71d159d8d12b2fceb9a
---
modules/codec/avcodec/dxva2.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 64d6f56500..029971c488 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -685,6 +685,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
/* Create the decoder */
IDirectXVideoDecoder *decoder;
+ /* adds a reference on each decoder surface */
if (FAILED(IDirectXVideoDecoderService_CreateVideoDecoder(sys->d3ddec,
&sys->input,
&dsc,
@@ -710,6 +711,7 @@ static void DxDestroyVideoDecoder(vlc_va_t *va)
directx_sys_t *dx_sys = &va->sys->dx_sys;
if (dx_sys->decoder)
{
+ /* releases a reference on each decoder surface */
IDirectXVideoDecoder_Release(dx_sys->decoder);
dx_sys->decoder = NULL;
for (unsigned i = 0; i < dx_sys->va_pool.surface_count; i++)
More information about the vlc-commits
mailing list