diff --git a/tests/examples/gl/gtk/fxtest/fxtest.c b/tests/examples/gl/gtk/fxtest/fxtest.c index 6200659a06..4b60b543f6 100644 --- a/tests/examples/gl/gtk/fxtest/fxtest.c +++ b/tests/examples/gl/gtk/fxtest/fxtest.c @@ -183,10 +183,6 @@ main (gint argc, gchar * argv[]) GstBus *bus; GError *error = NULL; -#ifdef HAVE_X11 - XInitThreads (); -#endif - GtkWidget *window; GtkWidget *screen; GtkWidget *vbox, *combo; @@ -204,6 +200,10 @@ main (gint argc, gchar * argv[]) {NULL} }; +#ifdef HAVE_X11 + XInitThreads (); +#endif + context = g_option_context_new (NULL); g_option_context_add_main_entries (context, options, NULL); g_option_context_add_group (context, gst_init_get_option_group ());