From: Philippe Normand Date: Wed, 30 Aug 2017 14:18:58 +0000 (+0100) Subject: examples/gl/gtk: build fix for the 3dvideo example on macOS X-Git-Tag: 1.19.3~511^2~1989^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9a2c64d8daebd2ca271ccfe693561c75c7b8f3e;p=platform%2Fupstream%2Fgstreamer.git examples/gl/gtk: build fix for the 3dvideo example on macOS --- 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);