Commit a83f5d13 authored by Thomas Guillem's avatar Thomas Guillem

android_window: fix segfault if PictureAlloc fails

parent 0624ef67
......@@ -996,7 +996,7 @@ static void Prepare(vout_display_t *vd, picture_t *picture,
if (!sys->p_sub_pic && SetupWindowSubtitleSurface(sys) == 0)
sys->p_sub_pic = PictureAlloc(sys, &sys->p_sub_window->fmt);
if (!sys->p_spu_blend)
if (!sys->p_spu_blend && sys->p_sub_pic)
sys->p_spu_blend = filter_NewBlend(VLC_OBJECT(vd),
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment