From ab2b9079f0dc99daa9c1648504ccf7cab0aa1f1a Mon Sep 17 00:00:00 2001 From: Teemu Katajisto Date: Mon, 7 Feb 2011 09:50:22 +0200 Subject: [PATCH] examples: camerabin: fix --no-xwindow option handling in gst-camerabin-test --no-window flag is false by default and selection based on the option whether to create XWindow is done before options are parsed. Therefore XWindow is never created. https://bugzilla.gnome.org/show_bug.cgi?id=641712 --- tests/examples/camerabin/gst-camerabin-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/examples/camerabin/gst-camerabin-test.c b/tests/examples/camerabin/gst-camerabin-test.c index 6286b25..73399e5 100644 --- a/tests/examples/camerabin/gst-camerabin-test.c +++ b/tests/examples/camerabin/gst-camerabin-test.c @@ -781,10 +781,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); @@ -797,6 +793,10 @@ main (int argc, char *argv[]) } g_option_context_free (ctx); + /* if we fail to create xwindow should we care? */ + if (!no_xwindow) + create_host_window (); + GST_DEBUG_CATEGORY_INIT (camerabin_test, "camerabin-test", 0, "camerabin test"); -- 2.7.4