Commit 4c5fabc4 authored by Olivier Crete's avatar Olivier Crete

Add debug categories to gst elements

darcs-hash:20080425204718-3e2dc-4e47de417c1f22dc2b7c3c4c3de0259d64ea3524.gz
parent 22cd2ce1
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment