mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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
This commit is contained in:
parent
347d732889
commit
18e4e80b7d
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue