]> git.sesse.net Git - vlc/commitdiff
XCB/XVideo: skip completely if overlay is disabled
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Dec 2009 20:09:49 +0000 (22:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Dec 2009 20:09:49 +0000 (22:09 +0200)
modules/video_output/xcb/xvideo.c

index a0171828671da8066180cf6aa3f5274e79399a2a..c02cc85177218103f9bad225b2f49abb932a1023 100644 (file)
@@ -297,6 +297,9 @@ static int Open (vlc_object_t *obj)
 {
     vout_display_t *vd = (vout_display_t *)obj;
     vout_display_sys_t *p_sys = malloc (sizeof (*p_sys));
+
+    if (!var_CreateGetBool (obj, "overlay"))
+        return VLC_EGENERIC;
     if (p_sys == NULL)
         return VLC_ENOMEM;