mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
camerabin2: examples: Backport fix from camerabin example
We should only check if the xwindow should be created if we already parsed the arguments of the program
This commit is contained in:
parent
b3abf91232
commit
7847f6497b
1 changed files with 4 additions and 4 deletions
|
@ -694,10 +694,6 @@ main (int argc, char *argv[])
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
/* if we fail to create xwindow should we care? */
|
|
||||||
if (!no_xwindow)
|
|
||||||
create_host_window ();
|
|
||||||
|
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
|
||||||
|
@ -713,6 +709,10 @@ main (int argc, char *argv[])
|
||||||
GST_DEBUG_CATEGORY_INIT (camerabin_test, "camerabin-test", 0,
|
GST_DEBUG_CATEGORY_INIT (camerabin_test, "camerabin-test", 0,
|
||||||
"camerabin test");
|
"camerabin test");
|
||||||
|
|
||||||
|
/* if we fail to create xwindow should we care? */
|
||||||
|
if (!no_xwindow)
|
||||||
|
create_host_window ();
|
||||||
|
|
||||||
/* FIXME: error handling */
|
/* FIXME: error handling */
|
||||||
if (ev_option != NULL)
|
if (ev_option != NULL)
|
||||||
ev_compensation = strtod (ev_option, (char **) NULL);
|
ev_compensation = strtod (ev_option, (char **) NULL);
|
||||||
|
|
Loading…
Reference in a new issue