projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0559b42
)
examples/gl/gtk: build fix for the 3dvideo example on macOS
author
Philippe Normand
<philn@igalia.com>
Wed, 30 Aug 2017 14:18:58 +0000
(15:18 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:32:30 +0000
(19:32 +0000)
tests/examples/gl/gtk/3dvideo/main.cpp
patch
|
blob
|
history
diff --git
a/tests/examples/gl/gtk/3dvideo/main.cpp
b/tests/examples/gl/gtk/3dvideo/main.cpp
index
16692f2
..
ec5951b
100644
(file)
--- a/
tests/examples/gl/gtk/3dvideo/main.cpp
+++ b/
tests/examples/gl/gtk/3dvideo/main.cpp
@@
-23,11
+23,14
@@
#endif
#include <string.h>
+
+#include <gdk/gdk.h>
+#if defined (GDK_WINDOWING_X11)
#include <X11/Xlib.h>
+#endif
#include <gst/gst.h>
#include <gtk/gtk.h>
-#include <gdk/gdk.h>
#include <gst/video/video-info.h>
#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);