]> git.sesse.net Git - vlc/commitdiff
pulse: require Xlib
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 25 May 2010 17:28:18 +0000 (20:28 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 25 May 2010 17:28:18 +0000 (20:28 +0300)
configure.ac
modules/audio_output/pulse.c

index 01367446902a717bec930966ee46c5876775b1b9..5e64648074c879fe96e73f9d352b78b07b97b728 100644 (file)
@@ -3644,14 +3644,16 @@ fi
 dnl
 dnl  Pulseaudio module
 dnl
-PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
-AS_IF([ test "$have_x" = yes],[
-       VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
-     ],[
-        AC_MSG_WARN([The pulse audio output module will be built without X 
-                    support. If you use VLC under X, you will experience 
-                    strange threading problems])
+AS_IF([test "${no_x}" = "yes"], [
+  AS_IF([test "${enable_pulse}" = "yes"], [
+    AC_MSG_ERROR([Xlib is required for VLC PulseAudio support
+(see http://www.pulseaudio.org/ticket/799 for further reference).])
+  ])
+], [
+  PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
+  VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
 ])
+
 dnl
 dnl  Portaudio module
 dnl
index 852e41802a6097566ace3e4efa140c154de7610a..f36ec0949e6233c87e43b29ca842b05005535873 100644 (file)
@@ -121,7 +121,9 @@ static int Open ( vlc_object_t *p_this )
     struct pa_buffer_attr a;
     struct pa_channel_map map;
 
-#ifdef HAVE_X11_XLIB_H
+#ifdef X_DISPLAY_MISSING
+# error Xlib required due to PulseAudio bug 799!
+#else
     if( !XInitThreads() )
         return VLC_EGENERIC;
 #endif