Commit f750fb87 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

vout: fix use-after-free of SPU

Pointed-out-by: default avatarPedro Ribeiro <pedrib@gmail.com>
(cherry picked from commit 33a8caa7)
Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent d67f57bb
...@@ -1049,8 +1049,10 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced) ...@@ -1049,8 +1049,10 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
picture_BlendSubpicture(sys->display.filtered, vout->p->spu_blend, subpic); picture_BlendSubpicture(sys->display.filtered, vout->p->spu_blend, subpic);
vout_display_Prepare(vd, sys->display.filtered, do_dr_spu ? subpic : NULL); 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); subpicture_Delete(subpic);
subpic = NULL;
}
if (!sys->display.filtered) if (!sys->display.filtered)
return VLC_EGENERIC; 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