gtk_quartz_dep = dependency('', required : false)
endif
-core_conf.set('HAVE_X', x11_dep.found())
+core_conf.set('HAVE_X11', x11_dep.found())
core_conf.set('HAVE_GIO_UNIX_2_0', giounix_dep.found())
if gio_dep.type_name() == 'pkgconfig'
#include <linux/input.h>
#include <linux/joystick.h>
-#ifdef HAVE_X
+#ifdef HAVE_X11
#include <gdk/gdkx.h>
#endif
#include <gst/video/videooverlay.h>
gst_element_set_state (pipeline, GST_STATE_PLAYING);
}
-#ifdef HAVE_X
+#ifdef HAVE_X11
static gulong embed_xid = 0;
if (!gdk_window_ensure_native (window))
g_error ("Couldn't create native window needed for GstVideoOverlay!");
-#ifdef HAVE_X
+#ifdef HAVE_X11
embed_xid = GDK_WINDOW_XID (window);
g_print ("Window realize: video window XID = %lu\n", embed_xid);
#endif
{
GstBus *bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
-#ifdef HAVE_X
+#ifdef HAVE_X11
/* handle prepare-window-handle element message synchronously */
gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler,
pipeline, NULL);
* asks for the XID of the window to render onto */
gtk_widget_realize (window);
-#ifdef HAVE_X
+#ifdef HAVE_X11
/* we should have the XID now */
g_assert (embed_xid != 0);
#endif