Commit 495813af authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

pulse: require Xlib

(cherry picked from commit 36c1cbc3)

Conflicts:

	configure.ac
parent e124baf9
...@@ -3752,10 +3752,16 @@ fi ...@@ -3752,10 +3752,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"], [
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]) 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