gst/gstindex.c: Add a debugging category for GstIndex, first little step in making...
authorEdward Hervey <bilboed@bilboed.com>
Sat, 3 Jan 2009 18:16:54 +0000 (18:16 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 3 Jan 2009 18:16:54 +0000 (18:16 +0000)
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
gst/gstindex.c

index 3ab0f3a..1296950 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-01-03  Edward Hervey  <edward.hervey@collabora.co.uk>
 
+       * 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  <edward.hervey@collabora.co.uk>
+
        * gst/gstelement.c: (gst_element_message_full),
        (gst_element_pads_activate):
        * gst/gstobject.c: (gst_object_dispatch_properties_changed):
index 924b6e9..729e66c 100644 (file)
@@ -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;
 }