]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/pulse.c
--no-xlib: prevent use of XInitThreads() and hence Xlib
[vlc] / modules / audio_output / pulse.c
index f36ec0949e6233c87e43b29ca842b05005535873..a064ff3aec0ef5307a143a16a3bd1d2a74255e7c 100644 (file)
@@ -124,7 +124,7 @@ static int Open ( vlc_object_t *p_this )
 #ifdef X_DISPLAY_MISSING
 # error Xlib required due to PulseAudio bug 799!
 #else
-    if( !XInitThreads() )
+    if( !var_InheritBool( p_this, "xlib" ) || !XInitThreads() )
         return VLC_EGENERIC;
 #endif
     /* Allocate structures */