[Nice] [nice/master] Add debug categories to gst elements

Olivier Crete olivier.crete at collabora.co.uk
Wed Nov 5 14:01:05 PST 2008


darcs-hash:20080425204718-3e2dc-4e47de417c1f22dc2b7c3c4c3de0259d64ea3524.gz
---
 gst/gstnicesink.c |    7 +++++++
 gst/gstnicesrc.c  |    6 ++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gst/gstnicesink.c b/gst/gstnicesink.c
index 3a74d17..7e79d67 100644
--- a/gst/gstnicesink.c
+++ b/gst/gstnicesink.c
@@ -40,6 +40,10 @@
 
 #include "gstnicesink.h"
 
+
+GST_DEBUG_CATEGORY_STATIC (nicesink_debug);
+#define GST_CAT_DEFAULT nicesink_debug
+
 static GstFlowReturn
 gst_nice_sink_render (
   GstBaseSink *basesink,
@@ -107,6 +111,9 @@ gst_nice_sink_class_init (GstNiceSinkClass *klass)
   GstElementClass *gstelement_class;
   GObjectClass *gobject_class;
 
+  GST_DEBUG_CATEGORY_INIT (nicesink_debug, "nicesink",
+      0, "libnice sink");
+
   gstbasesink_class = (GstBaseSinkClass *) klass;
   gstbasesink_class->render = GST_DEBUG_FUNCPTR (gst_nice_sink_render);
 
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index c9a967e..27bf965 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -42,6 +42,9 @@
 
 #include "gstnicesrc.h"
 
+GST_DEBUG_CATEGORY_STATIC (nicesrc_debug);
+#define GST_CAT_DEFAULT nicesrc_debug
+
 
 #define BUFFER_SIZE (65536)
 
@@ -123,6 +126,9 @@ gst_nice_src_class_init (GstNiceSrcClass *klass)
   GstElementClass *gstelement_class;
   GObjectClass *gobject_class;
 
+  GST_DEBUG_CATEGORY_INIT (nicesrc_debug, "nicesrc",
+      0, "libnice source");
+
   gstbasesrc_class = (GstBaseSrcClass *) klass;
   gstbasesrc_class->create = GST_DEBUG_FUNCPTR (gst_nice_src_create);
   gstbasesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_nice_src_unlock);
-- 
1.5.6.5




More information about the Nice mailing list