]> git.sesse.net Git - vlc/blobdiff - modules/video_output/xcb/glx.c
--no-xlib: prevent use of XInitThreads() and hence Xlib
[vlc] / modules / video_output / xcb / glx.c
index f67d9f63eb1be713cd78852a7d7f53b78d2fabd2..7598cd10f3b3ec02e60f83df3c7bf73eb4efbb9a 100644 (file)
@@ -203,7 +203,7 @@ static int CreateWindow (vout_display_t *vd, xcb_connection_t *conn,
  */
 static int Open (vlc_object_t *obj)
 {
-    if (!XInitThreads ())
+    if (!var_InheritBool (obj, "xlib") || !XInitThreads ())
         return VLC_EGENERIC;
 
     vout_display_t *vd = (vout_display_t *)obj;