[gst-cvs] gst-plugins-base: tags: fix illegal use of internal debug category function

René Stadler cymacs at kemper.freedesktop.org
Thu Sep 30 03:17:30 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: 4188e2648f2fdcc580efab4ee6531ae70e273536
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=4188e2648f2fdcc580efab4ee6531ae70e273536

Author: René Stadler <rene.stadler at nokia.com>
Date:   Thu Sep 30 12:59:46 2010 +0300

tags: fix illegal use of internal debug category function

>From gstinfo.h:

  /* do not use this function, use the GST_DEBUG_CATEGORY_INIT macro */
  GstDebugCategory *_gst_debug_category_new (const gchar * name,

And more importantly:

  #pragma GCC poison _gst_debug_category_new

So this commit fixes --disable-gst-debug builds.

---

 gst-libs/gst/tag/tags.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c
index 9d82297..0236a6d 100644
--- a/gst-libs/gst/tag/tags.c
+++ b/gst-libs/gst/tag/tags.c
@@ -51,12 +51,11 @@ gst_tag_ensure_debug_category (void)
   static gsize cat_gonce = 0;
 
   if (g_once_init_enter (&cat_gonce)) {
-    gsize cat_done;
+    GstDebugCategory *cat = NULL;
 
-    cat_done = (gsize) _gst_debug_category_new ("tag-tags", 0,
-        "GstTag helper functions");
+    GST_DEBUG_CATEGORY_INIT (cat, "tag-tags", 0, "GstTag helper functions");
 
-    g_once_init_leave (&cat_gonce, cat_done);
+    g_once_init_leave (&cat_gonce, (gsize) cat);
   }
 
   return (GstDebugCategory *) cat_gonce;





More information about the Gstreamer-commits mailing list