From 18e4e80b7dd605845b65247b1f17bf3c2ae7bea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 8 Oct 2018 23:47:51 +0100 Subject: [PATCH] examples: force gtk to x11 backend Until someone makes it work with the wayland backend. The code currenty assumes and hard-codes X11. https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/49 --- tests/examples/camerabin2/gst-camera2.c | 4 ++++ tests/examples/uvch264/test-uvch264.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/examples/camerabin2/gst-camera2.c b/tests/examples/camerabin2/gst-camera2.c index a1cfa39ec8..d85a8395db 100644 --- a/tests/examples/camerabin2/gst-camera2.c +++ b/tests/examples/camerabin2/gst-camera2.c @@ -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); diff --git a/tests/examples/uvch264/test-uvch264.c b/tests/examples/uvch264/test-uvch264.c index 4f07f1ca2b..569380023c 100644 --- a/tests/examples/uvch264/test-uvch264.c +++ b/tests/examples/uvch264/test-uvch264.c @@ -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);