summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2016-08-08 13:41:14 +1000
committerJan Schmidt <jan@centricular.com>2016-08-16 00:43:39 +1000
commit23fc5e31b0ccbe436af3b9bc41a2e60b30f8e874 (patch)
tree533a40605f54ac7b661e7fe64d3a064b6c853cdf
parentf126403bd61a27224cfd4d0dafde32daea9fc0c9 (diff)
qt: Move debug statement to after the category init
Don't output debug to an uninitialised debug category.
-rw-r--r--ext/qt/gstqtglutility.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc
index 3753037c2..84061202c 100644
--- a/ext/qt/gstqtglutility.cc
+++ b/ext/qt/gstqtglutility.cc
@@ -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())