Commit 919ce4c5 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

dxva2: add logs about reference counters

(cherry picked from commit 24482ce5)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent fe277b3d
......@@ -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,
......@@ -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 */
dx_sys->decoder = NULL;
for (unsigned i = 0; i < dx_sys->va_pool.surface_count; i++)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment