soup: Initialize debug category before use

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1536>
This commit is contained in:
Philippe Normand 2022-01-16 14:40:11 +00:00 committed by GStreamer Marge Bot
parent d764b6c4f2
commit a44a1bf193

View file

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