]> git.sesse.net Git - vlc/commitdiff
Fixed segfault when xcb xvideo open failed.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 28 Aug 2009 19:46:39 +0000 (21:46 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 28 Aug 2009 19:47:18 +0000 (21:47 +0200)
modules/video_output/xcb/xvideo.c

index f0fb9f046345b5f2726f25fd5c772f28f360c6b9..f2b80f37a82089889b1fdbc26a36fae66746f38f 100644 (file)
@@ -317,6 +317,10 @@ static int Open (vlc_object_t *obj)
         return VLC_EGENERIC;
     }
 
+    /* */
+    p_sys->att = NULL;
+    p_sys->pool = NULL;
+
     /* Cache adaptors infos */
     p_sys->adaptors = GetAdaptors (p_sys->embed, p_sys->conn);
     if (p_sys->adaptors == NULL)
@@ -326,7 +330,6 @@ static int Open (vlc_object_t *obj)
     video_format_t fmt = vd->fmt;
     // TODO !
 #if 1
-    p_sys->att = NULL;
     bool found_adaptor = false;
 
     /* FIXME: check max image size */