ladspa: initialize debug category earlier
authorDavid Schleef <ds@schleef.org>
Fri, 26 Jul 2013 20:20:27 +0000 (13:20 -0700)
committerDavid Schleef <ds@schleef.org>
Fri, 26 Jul 2013 20:21:05 +0000 (13:21 -0700)
You know, before it's used.

ext/ladspa/gstladspa.c

index 344537b..02bb179 100644 (file)
@@ -399,6 +399,8 @@ plugin_init (GstPlugin * plugin)
   gboolean res = FALSE;
   gint n = 0;
 
+  GST_DEBUG_CATEGORY_INIT (ladspa_debug, "ladspa", 0, "LADSPA plugins");
+
 #ifdef ENABLE_NLS
   GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
       LOCALEDIR);
@@ -406,8 +408,6 @@ plugin_init (GstPlugin * plugin)
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 #endif
 
-  GST_DEBUG_CATEGORY_INIT (ladspa_debug, "ladspa", 0, "LADSPA plugins");
-
   gst_plugin_add_dependency_simple (plugin,
       "LADSPA_PATH",
       GST_LADSPA_DEFAULT_PATH, NULL, GST_PLUGIN_DEPENDENCY_FLAG_NONE);