Adding a debug category is nicer than logging to the default category
#include "gstsample.h"
+GST_DEBUG_CATEGORY_STATIC (gst_sample_debug);
+#define GST_CAT_DEFAULT gst_sample_debug
+
struct _GstSample
{
GstMiniObject mini_object;
_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 *
#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
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 *