mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
gl/gtk: Fix compiler warning in example
fxtest.c: In function ‘main’: fxtest.c:190:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] GtkWidget *window; ^~~~~~~~~
This commit is contained in:
parent
795f63659c
commit
10bc9a7efc
1 changed files with 4 additions and 4 deletions
|
@ -183,10 +183,6 @@ main (gint argc, gchar * argv[])
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
#ifdef HAVE_X11
|
|
||||||
XInitThreads ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
GtkWidget *window;
|
GtkWidget *window;
|
||||||
GtkWidget *screen;
|
GtkWidget *screen;
|
||||||
GtkWidget *vbox, *combo;
|
GtkWidget *vbox, *combo;
|
||||||
|
@ -204,6 +200,10 @@ main (gint argc, gchar * argv[])
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_X11
|
||||||
|
XInitThreads ();
|
||||||
|
#endif
|
||||||
|
|
||||||
context = g_option_context_new (NULL);
|
context = g_option_context_new (NULL);
|
||||||
g_option_context_add_main_entries (context, options, NULL);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
g_option_context_add_group (context, gst_init_get_option_group ());
|
g_option_context_add_group (context, gst_init_get_option_group ());
|
||||||
|
|
Loading…
Reference in a new issue