return ret;
}
-GstDebugCategory *
-_gst_debug_get_category (const gchar * name)
+static GstDebugCategory *
+_gst_debug_get_category_locked (const gchar * name)
{
GstDebugCategory *ret = NULL;
GSList *node;
return NULL;
}
+GstDebugCategory *
+_gst_debug_get_category (const gchar * name)
+{
+ GstDebugCategory *ret;
+
+ g_mutex_lock (&__cat_mutex);
+ ret = _gst_debug_get_category_locked (name);
+ g_mutex_unlock (&__cat_mutex);
+
+ return ret;
+}
+
static gboolean
parse_debug_category (gchar * str, const gchar ** category)
{