[gst-cvs] gst-plugins-base: tags: add debug category for tags utility functions
Tim Müller
tpm at kemper.freedesktop.org
Tue Sep 28 02:36:38 PDT 2010
Module: gst-plugins-base
Branch: master
Commit: 56441d45cf5a4987a24972af9f30225f6612c810
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=56441d45cf5a4987a24972af9f30225f6612c810
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Mon Sep 27 18:14:50 2010 +0100
tags: add debug category for tags utility functions
---
gst-libs/gst/tag/tags.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c
index 410b3e4..9d82297 100644
--- a/gst-libs/gst/tag/tags.c
+++ b/gst-libs/gst/tag/tags.c
@@ -43,6 +43,24 @@
* </refsect2>
*/
+#define GST_CAT_DEFAULT gst_tag_ensure_debug_category()
+
+static GstDebugCategory *
+gst_tag_ensure_debug_category (void)
+{
+ static gsize cat_gonce = 0;
+
+ if (g_once_init_enter (&cat_gonce)) {
+ gsize cat_done;
+
+ cat_done = (gsize) _gst_debug_category_new ("tag-tags", 0,
+ "GstTag helper functions");
+
+ g_once_init_leave (&cat_gonce, cat_done);
+ }
+
+ return (GstDebugCategory *) cat_gonce;
+}
static gpointer
gst_tag_register_tags_internal (gpointer unused)
More information about the Gstreamer-commits
mailing list