mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
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.
This commit is contained in:
parent
e17b42181c
commit
4188e2648f
1 changed files with 3 additions and 4 deletions
|
@ -51,12 +51,11 @@ gst_tag_ensure_debug_category (void)
|
||||||
static gsize cat_gonce = 0;
|
static gsize cat_gonce = 0;
|
||||||
|
|
||||||
if (g_once_init_enter (&cat_gonce)) {
|
if (g_once_init_enter (&cat_gonce)) {
|
||||||
gsize cat_done;
|
GstDebugCategory *cat = NULL;
|
||||||
|
|
||||||
cat_done = (gsize) _gst_debug_category_new ("tag-tags", 0,
|
GST_DEBUG_CATEGORY_INIT (cat, "tag-tags", 0, "GstTag helper functions");
|
||||||
"GstTag helper functions");
|
|
||||||
|
|
||||||
g_once_init_leave (&cat_gonce, cat_done);
|
g_once_init_leave (&cat_gonce, (gsize) cat);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (GstDebugCategory *) cat_gonce;
|
return (GstDebugCategory *) cat_gonce;
|
||||||
|
|
Loading…
Reference in a new issue