liveadder: move debug-category registration to type init

This commit is contained in:
Stefan Kost 2010-09-28 14:22:18 +03:00
parent afa30fb8ea
commit 69ea2ec2ba

View file

@ -91,8 +91,11 @@ typedef struct _GstLiveAdderPadPrivate
} GstLiveAdderPadPrivate; } GstLiveAdderPadPrivate;
#define _do_init(bla) \
GST_DEBUG_CATEGORY_INIT (live_adder_debug, "liveadder", 0, "Live Adder");
GST_BOILERPLATE (GstLiveAdder, gst_live_adder, GstElement, GST_TYPE_ELEMENT); GST_BOILERPLATE_FULL (GstLiveAdder, gst_live_adder, GstElement,
GST_TYPE_ELEMENT, _do_init);
static void gst_live_adder_finalize (GObject * object); static void gst_live_adder_finalize (GObject * object);
@ -183,9 +186,6 @@ gst_live_adder_class_init (GstLiveAdderClass * klass)
g_param_spec_uint ("latency", "Buffer latency in ms", g_param_spec_uint ("latency", "Buffer latency in ms",
"Amount of data to buffer", 0, G_MAXUINT, DEFAULT_LATENCY_MS, "Amount of data to buffer", 0, G_MAXUINT, DEFAULT_LATENCY_MS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
GST_DEBUG_CATEGORY_INIT (live_adder_debug, "liveadder", 0, "Live Adder");
} }
static void static void
@ -221,7 +221,6 @@ gst_live_adder_init (GstLiveAdder * adder, GstLiveAdderClass * klass)
} }
static void static void
gst_live_adder_finalize (GObject * object) gst_live_adder_finalize (GObject * object)
{ {