Commit 68f592e6 authored by Thomas Guillem's avatar Thomas Guillem

debug

parent 3ae9a34f
......@@ -419,7 +419,8 @@ vlc_vaapi_CloseChroma(vlc_object_t *obj)
if (filter_sys->dest_pics)
picture_pool_Release(filter_sys->dest_pics);
CopyCleanCache(&filter_sys->cache);
vlc_video_context_Release(filter->vctx_out);
if (filter->vctx_out)
vlc_video_context_Release(filter->vctx_out);
free(filter_sys);
}
......@@ -461,7 +461,7 @@ pic_ctx_copy_cb(struct picture_context_t *opaque)
static void
pic_sys_ctx_destroy_cb(struct picture_context_t *opaque)
{
(void) opaque;
vlc_video_context_Release(opaque->vctx);
}
picture_pool_t *
......@@ -523,7 +523,6 @@ vlc_vaapi_PoolNew(vlc_object_t *o, vlc_video_context *vctx,
count = i;
goto error_pic;
}
vlc_video_context_Hold(p_sys->ctx.ctx.s.vctx);
}
picture_pool_t *pool = picture_pool_New(count, pics);
......
......@@ -277,8 +277,10 @@ vlc_video_context *vlc_video_context_Hold(vlc_video_context *vctx)
void vlc_video_context_Release(vlc_video_context *vctx)
{
fprintf(stderr, "vlc_video_context_Release\n");
if ( vlc_atomic_rc_dec( &vctx->rc ) )
{
fprintf(stderr, "vlc_video_context_Release: free!\n");
if (vctx->device)
vlc_decoder_device_Release( vctx->device );
if ( vctx->ops && vctx->ops->destroy )
......
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