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

vout: fix use-after-free of SPU

Pointed-out-by: default avatarPedro Ribeiro <pedrib@gmail.com>
parent 814d5303
......@@ -1024,7 +1024,10 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
vout_display_Prepare(vd, sys->display.filtered, do_dr_spu ? subpic : NULL);
}
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