Commit 33a8caa7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

vout: fix use-after-free of SPU

Pointed-out-by: default avatarPedro Ribeiro <pedrib@gmail.com>
parent 26437916
......@@ -1034,8 +1034,10 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
picture_BlendSubpicture(sys->display.filtered, vout->p->spu_blend, subpic);
vout_display_Prepare(vd, sys->display.filtered, do_dr_spu ? subpic : NULL);
}
if (!do_dr_spu && subpic)
if (!do_dr_spu && subpic) {
subpicture_Delete(subpic);
subpic = NULL;
}
if (!sys->display.filtered)
return VLC_EGENERIC;
}
......
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