From ab1921ffc39e80366cf70c57b84f1577f7ac63ae Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 3 Jan 2009 18:16:54 +0000 Subject: [PATCH] gst/gstindex.c: Add a debugging category for GstIndex, first little step in making indexing top-notch. Original commit message from CVS: * gst/gstindex.c: (gst_index_get_type): Add a debugging category for GstIndex, first little step in making indexing top-notch. --- ChangeLog | 6 ++++++ gst/gstindex.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3ab0f3a3eb..1296950551 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-03 Edward Hervey + + * gst/gstindex.c: (gst_index_get_type): + Add a debugging category for GstIndex, first little step in making + indexing top-notch. + 2009-01-03 Edward Hervey * gst/gstelement.c: (gst_element_message_full), diff --git a/gst/gstindex.c b/gst/gstindex.c index 924b6e9798..729e66cb00 100644 --- a/gst/gstindex.c +++ b/gst/gstindex.c @@ -39,6 +39,7 @@ /* for constructing an entry name */ #include "gstelement.h" #include "gstpad.h" +#include "gstinfo.h" /* Index signals and args */ enum @@ -54,6 +55,9 @@ enum /* FILL ME */ }; +GST_DEBUG_CATEGORY_STATIC (index_debug); +#define GST_CAT_DEFAULT index_debug + static void gst_index_class_init (GstIndexClass * klass); static void gst_index_init (GstIndex * index); static void gst_index_finalize (GObject * object); @@ -142,6 +146,9 @@ gst_index_get_type (void) index_type = g_type_register_static (GST_TYPE_OBJECT, "GstIndex", &index_info, 0); + + GST_DEBUG_CATEGORY_INIT (index_debug, "GST_INDEX", GST_DEBUG_BOLD, + "Generic indexing support"); } return index_type; }