vorbis: fix debug category init
authorStéphane Cerveau <scerveau@collabora.com>
Thu, 18 Mar 2021 14:58:01 +0000 (15:58 +0100)
committerStéphane Cerveau <scerveau@collabora.com>
Thu, 18 Mar 2021 14:59:34 +0000 (15:59 +0100)
During the element splitting process,
the debug category initialization has
been dropped accidently.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1074>

ext/vorbis/gstvorbiselement.c

index 1ff85a5..a99a265 100644 (file)
@@ -38,6 +38,16 @@ vorbis_element_init (GstPlugin * plugin)
 
   if (g_once_init_enter (&res)) {
     gst_tag_register_musicbrainz_tags ();
+
+    GST_DEBUG_CATEGORY_INIT (vorbisenc_debug, "vorbisenc", 0,
+        "vorbis encoding element");
+    GST_DEBUG_CATEGORY_INIT (vorbisdec_debug, "vorbisdec", 0,
+        "vorbis decoding element");
+    GST_DEBUG_CATEGORY_INIT (vorbisparse_debug, "vorbisparse", 0,
+        "vorbis parsing element");
+    GST_DEBUG_CATEGORY_INIT (vorbistag_debug, "vorbistag", 0,
+        "vorbis tagging element");
+
     g_once_init_leave (&res, TRUE);
   }
 }