[vlc-devel] [PATCH 1/4] android_window: fix segfault if PictureAlloc fails
Thomas Guillem
thomas at gllm.fr
Fri Apr 10 09:52:02 CEST 2015
---
modules/video_output/android/android_window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/android/android_window.c b/modules/video_output/android/android_window.c
index f17bb0d..406058f 100644
--- a/modules/video_output/android/android_window.c
+++ b/modules/video_output/android/android_window.c
@@ -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),
&sys->p_sub_pic->format);
--
2.1.3
More information about the vlc-devel
mailing list