Commit 28a58d39 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ASCII Art: initialize Xlib

Don't ask me why, but libaa depends on Xlib.
(cherry picked from commit d6d738ce)
parent cfeb72c0
...@@ -3729,6 +3729,9 @@ then ...@@ -3729,6 +3729,9 @@ then
then then
VLC_ADD_PLUGIN([aa]) VLC_ADD_PLUGIN([aa])
VLC_ADD_LIBS([aa],[-laa]) VLC_ADD_LIBS([aa],[-laa])
if test "${SYS}" != "mingw32"; then
VLC_ADD_LIBS([aa],[${X_LIBS} ${X_PRE_LIBS} -lX11])
fi
fi fi
fi fi
......
...@@ -37,6 +37,13 @@ ...@@ -37,6 +37,13 @@
#include <assert.h> #include <assert.h>
#include <aalib.h> #include <aalib.h>
#ifndef WIN32
# ifdef X_DISPLAY_MISSING
# error Xlib required due to XInitThreads
# endif
# include <vlc_xlib.h>
#endif
/* TODO /* TODO
* - what about RGB palette ? * - what about RGB palette ?
*/ */
...@@ -85,6 +92,11 @@ static int Open(vlc_object_t *object) ...@@ -85,6 +92,11 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object; vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys; vout_display_sys_t *sys;
#ifndef WIN32
if (!vlc_xlib_init (object))
return VLC_EGENERIC;
#endif
/* Allocate structure */ /* Allocate structure */
vd->sys = sys = calloc(1, sizeof(*sys)); vd->sys = sys = calloc(1, sizeof(*sys));
if (!sys) if (!sys)
......
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