mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +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;
|
||||
GError *err = NULL;
|
||||
|
||||
/* if we fail to create xwindow should we care? */
|
||||
if (!no_xwindow)
|
||||
create_host_window ();
|
||||
|
||||
if (!g_thread_supported ())
|
||||
g_thread_init (NULL);
|
||||
|
||||
|
@ -713,6 +709,10 @@ main (int argc, char *argv[])
|
|||
GST_DEBUG_CATEGORY_INIT (camerabin_test, "camerabin-test", 0,
|
||||
"camerabin test");
|
||||
|
||||
/* if we fail to create xwindow should we care? */
|
||||
if (!no_xwindow)
|
||||
create_host_window ();
|
||||
|
||||
/* FIXME: error handling */
|
||||
if (ev_option != NULL)
|
||||
ev_compensation = strtod (ev_option, (char **) NULL);
|
||||
|
|
Loading…
Reference in a new issue