soup: Initialize debug category before use
authorPhilippe Normand <philn@igalia.com>
Sun, 16 Jan 2022 14:40:11 +0000 (14:40 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 21 Jan 2022 07:23:33 +0000 (07:23 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1536>

subprojects/gst-plugins-good/ext/soup/gstsoupelement.c

index d8e8ea4..303187e 100644 (file)
@@ -31,6 +31,7 @@ soup_element_init (GstPlugin * plugin)
   static gsize res = FALSE;
 
   if (g_once_init_enter (&res)) {
+    GST_DEBUG_CATEGORY_INIT (soup_utils_debug, "souputils", 0, "Soup utils");
 #ifdef ENABLE_NLS
     GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
         LOCALEDIR);
@@ -53,6 +54,5 @@ soup_element_init (GstPlugin * plugin)
     g_type_ensure (G_TYPE_TLS_INTERACTION);
 
     g_once_init_leave (&res, TRUE);
-    GST_DEBUG_CATEGORY_INIT (soup_utils_debug, "souputils", 0, "Soup utils");
   }
 }