Commit 18e4e80b authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

examples: force gtk to x11 backend

Until someone makes it work with the wayland backend.
The code currenty assumes and hard-codes X11.

gstreamer/gst-plugins-bad!49
parent 347d7328
Pipeline #9841 passed with stages
in 6 minutes and 55 seconds
......@@ -299,6 +299,10 @@ main (int argc, char *argv[])
GError *error = NULL;
GstBus *bus;
/* FIXME: add support for Gdk Wayland backend, code currently assumes X11 */
if (g_getenv ("GDK_BACKEND") == NULL)
g_setenv ("GDK_BACKEND", "x11", TRUE);
gst_init (&argc, &argv);
gtk_init (&argc, &argv);
......
......@@ -520,6 +520,10 @@ main (int argc, char *argv[])
GError *error = NULL;
int i;
/* FIXME: add support for Gdk Wayland backend, code currently assumes X11 */
if (g_getenv ("GDK_BACKEND") == NULL)
g_setenv ("GDK_BACKEND", "x11", TRUE);
gtk_init (&argc, &argv);
gst_init (&argc, &argv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment