mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-13 03:38:55 +00:00
xmptag: Add a debug category
Instead of using the default category
This commit is contained in:
parent
f9acd972ef
commit
b81ca93de2
1 changed files with 18 additions and 0 deletions
|
@ -44,6 +44,24 @@
|
|||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#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)) {
|
||||
GstDebugCategory *cat = NULL;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (cat, "xmp-tags", 0, "XMP GstTag helper functions");
|
||||
|
||||
g_once_init_leave (&cat_gonce, (gsize) cat);
|
||||
}
|
||||
|
||||
return (GstDebugCategory *) cat_gonce;
|
||||
}
|
||||
|
||||
static const gchar *schema_list[] = {
|
||||
"dc",
|
||||
"xap",
|
||||
|
|
Loading…
Reference in a new issue