26 # include <X11/Xlib.h>
27 # include <X11/Xlibint.h>
31 if (!var_InheritBool (obj,
"xlib"))
38 vlc_global_lock (VLC_XLIB_MUTEX);
40 if (_Xglobal_lock == NULL && unlikely(_XErrorFunction != NULL))
43 fprintf (stderr,
"%s:%u:%s: Xlib not initialized for threads.\n"
44 "This process is probably using LibVLC incorrectly.\n"
45 "Pass \"--no-xlib\" to libvlc_new() to fix this.\n",
46 __FILE__, __LINE__, __func__);
47 else if (XInitThreads ())
50 vlc_global_unlock (VLC_XLIB_MUTEX);
53 msg_Err (obj,
"Xlib not initialized for threads");
Definition: vlc_objects.h:42