Commit 36c1cbc3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

pulse: require Xlib

parent 025e08ce
...@@ -3644,14 +3644,16 @@ fi ...@@ -3644,14 +3644,16 @@ fi
dnl dnl
dnl Pulseaudio module dnl Pulseaudio module
dnl dnl
PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto]) AS_IF([test "${no_x}" = "yes"], [
AS_IF([ test "$have_x" = yes],[ AS_IF([test "${enable_pulse}" = "yes"], [
VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11]) AC_MSG_ERROR([Xlib is required for VLC PulseAudio support
],[ (see http://www.pulseaudio.org/ticket/799 for further reference).])
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]) PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
]) ])
dnl dnl
dnl Portaudio module dnl Portaudio module
dnl dnl
......
...@@ -121,7 +121,9 @@ static int Open ( vlc_object_t *p_this ) ...@@ -121,7 +121,9 @@ static int Open ( vlc_object_t *p_this )
struct pa_buffer_attr a; struct pa_buffer_attr a;
struct pa_channel_map map; 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() ) if( !XInitThreads() )
return VLC_EGENERIC; return VLC_EGENERIC;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment