diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-04-25 20:47:00 +0000 |
---|---|---|
committer | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-04-25 20:47:00 +0000 |
commit | 4c5fabc4c587ec0110db7bd23711c5c901fb16f8 (patch) | |
tree | daeee22b7e927444fb19f42dfdab28d94f78f9c8 /gst | |
parent | 22cd2ce1e9d1fca7617900961f6b3a46f569fc16 (diff) | |
download | libnice-4c5fabc4c587ec0110db7bd23711c5c901fb16f8.tar.gz |
Add debug categories to gst elements
darcs-hash:20080425204718-3e2dc-4e47de417c1f22dc2b7c3c4c3de0259d64ea3524.gz
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstnicesink.c | 7 | ||||
-rw-r--r-- | 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); |