From 26760588e890d19b9ebf2bd23450f8d442a19c51 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Wed, 30 Aug 2017 15:18:58 +0100 Subject: [PATCH] examples/gl/gtk: build fix for the 3dvideo example on macOS --- tests/examples/gl/gtk/3dvideo/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/examples/gl/gtk/3dvideo/main.cpp b/tests/examples/gl/gtk/3dvideo/main.cpp index 16692f2..ec5951b 100644 --- a/tests/examples/gl/gtk/3dvideo/main.cpp +++ b/tests/examples/gl/gtk/3dvideo/main.cpp @@ -23,11 +23,14 @@ #endif #include + +#include +#if defined (GDK_WINDOWING_X11) #include +#endif #include #include -#include #include #include "../gstgtk.h" @@ -273,7 +276,9 @@ main (gint argc, gchar * argv[]) GtkWidget *area, *combo, *w; const gchar *uri; +#if defined (GDK_WINDOWING_X11) XInitThreads (); +#endif gst_init (&argc, &argv); gtk_init (&argc, &argv); -- 2.7.4