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

android/display: add picture destroy callback

Since there is something to free.
parent cdbc80af
......@@ -176,6 +176,11 @@ static int UpdateVideoSize(vout_display_sys_t *sys, video_format_t *p_fmt)
return 0;
}
static void AndroidPicture_Destroy(picture_t *pic)
{
free(pic->p_sys);
}
static picture_t *PictureAlloc(vout_display_sys_t *sys, video_format_t *fmt,
bool b_opaque)
{
......@@ -200,7 +205,10 @@ static picture_t *PictureAlloc(vout_display_sys_t *sys, video_format_t *fmt,
rsc.pf_destroy = AndroidOpaquePicture_DetachVout;
}
else
{
p_picsys->sw.p_vd_sys = sys;
res.pf_destroy = AndroidPicture_Destroy;
}
p_pic = picture_NewFromResource(fmt, &rsc);
if (!p_pic)
......
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