mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
tags: add debug category for tags utility functions
This commit is contained in:
parent
5ef53dcf5c
commit
56441d45cf
1 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue