Commit d6d738ce 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.
parent 12a85b8a
......@@ -3623,6 +3623,9 @@ then
then
VLC_ADD_PLUGIN([aa])
VLC_ADD_LIBS([aa],[-laa])
if test "${SYS}" != "mingw32"; then
VLC_ADD_LIBS([aa],[${X_LIBS} ${X_PRE_LIBS} -lX11])
fi
fi
fi
......
......@@ -36,6 +36,13 @@
#include <assert.h>
#include <aalib.h>
#ifndef WIN32
# ifdef X_DISPLAY_MISSING
# error Xlib required due to XInitThreads
# endif
# include <vlc_xlib.h>
#endif
/* TODO
* - what about RGB palette ?
*/
......@@ -83,6 +90,11 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
#ifndef WIN32
if (!vlc_xlib_init (object))
return VLC_EGENERIC;
#endif
/* Allocate structure */
vd->sys = sys = calloc(1, sizeof(*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