mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
add debug category
Adding a debug category is nicer than logging to the default category
This commit is contained in:
parent
63cc762626
commit
5f2fbb6370
2 changed files with 11 additions and 0 deletions
|
@ -33,6 +33,9 @@
|
|||
|
||||
#include "gstsample.h"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_sample_debug);
|
||||
#define GST_CAT_DEFAULT gst_sample_debug
|
||||
|
||||
struct _GstSample
|
||||
{
|
||||
GstMiniObject mini_object;
|
||||
|
@ -51,6 +54,8 @@ void
|
|||
_priv_gst_sample_initialize (void)
|
||||
{
|
||||
_gst_sample_type = gst_sample_get_type ();
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (gst_sample_debug, "sample", 0, "GstSample debug");
|
||||
}
|
||||
|
||||
static GstSample *
|
||||
|
|
|
@ -67,6 +67,9 @@
|
|||
#include <gst/gst.h>
|
||||
#include <gobject/gvaluecollector.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_structure_debug);
|
||||
#define GST_CAT_DEFAULT gst_structure_debug
|
||||
|
||||
typedef struct _GstStructureField GstStructureField;
|
||||
|
||||
struct _GstStructureField
|
||||
|
@ -125,6 +128,9 @@ _priv_gst_structure_initialize (void)
|
|||
|
||||
g_value_register_transform_func (_gst_structure_type, G_TYPE_STRING,
|
||||
gst_structure_transform_to_string);
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (gst_structure_debug, "structure", 0,
|
||||
"GstStructure debug");
|
||||
}
|
||||
|
||||
static GstStructure *
|
||||
|
|
Loading…
Reference in a new issue