summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-10-08 23:47:51 +0100
committerTim-Philipp Müller <tim@centricular.com>2018-11-25 16:28:25 +0000
commit18e4e80b7dd605845b65247b1f17bf3c2ae7bea6 (patch)
treefb81bf454052c469935f4b585729942c557e5bb1 /tests
parent347d732889234958b5f0f1ab4b6b84a6388ac37d (diff)
downloadgstreamer-plugins-bad-18e4e80b7dd605845b65247b1f17bf3c2ae7bea6.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/camerabin2/gst-camera2.c4
-rw-r--r--tests/examples/uvch264/test-uvch264.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/examples/camerabin2/gst-camera2.c b/tests/examples/camerabin2/gst-camera2.c
index a1cfa39ec..d85a8395d 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 4f07f1ca2..569380023 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);