qt: Move debug statement to after the category init
authorJan Schmidt <jan@centricular.com>
Mon, 8 Aug 2016 03:41:14 +0000 (13:41 +1000)
committerJan Schmidt <jan@centricular.com>
Mon, 15 Aug 2016 14:43:39 +0000 (00:43 +1000)
Don't output debug to an uninitialised debug category.

ext/qt/gstqtglutility.cc

index 3753037..8406120 100644 (file)
@@ -57,13 +57,12 @@ gst_qt_get_gl_display ()
 
   g_assert (app != NULL);
 
-  GST_INFO ("QGuiApplication::instance()->platformName() %s", app->platformName().toUtf8().data());
-
   if (g_once_init_enter (&_debug)) {
     GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "qtglutility", 0,
         "Qt gl utility functions");
     g_once_init_leave (&_debug, 1);
   }
+  GST_INFO ("QGuiApplication::instance()->platformName() %s", app->platformName().toUtf8().data());
 
 #if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
   if (QString::fromUtf8 ("xcb") == app->platformName())