Commit b6343d06 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

kva: add picture destroy callback

Since there is something to free.
parent e6309601
......@@ -490,6 +490,11 @@ static int Control( vout_display_t *vd, int query, va_list args )
/* following functions are local */
static void DestroyPicture( picture_t *pic )
{
free( pic->p_sys );
}
/*****************************************************************************
* OpenDisplay: open and initialize KVA device
*****************************************************************************
......@@ -612,7 +617,9 @@ static int OpenDisplay( vout_display_t *vd, video_format_t *fmt )
return VLC_ENOMEM;
picsys->i_chroma_shift = i_chroma_shift;
picture_resource_t resource = { .p_sys = picsys };
picture_resource_t resource = {
.p_sys = picsys, .pf_destroy = DestroyPicture,
};
picture_t *picture = picture_NewFromResource( fmt, &resource );
if( !picture )
{
......
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