valve: move debug-category registration to type init
authorStefan Kost <ensonic@users.sf.net>
Tue, 28 Sep 2010 11:23:01 +0000 (14:23 +0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:51:11 +0000 (00:51 +0000)
plugins/elements/gstvalve.c

index cb431d4..cc8d8f0 100644 (file)
@@ -82,11 +82,8 @@ static GstFlowReturn gst_valve_buffer_alloc (GstPad * pad, guint64 offset,
 static GstFlowReturn gst_valve_chain (GstPad * pad, GstBuffer * buffer);
 static GstCaps *gst_valve_getcaps (GstPad * pad);
 
-static void
-_do_init (GType type)
-{
+#define _do_init(bla) \
   GST_DEBUG_CATEGORY_INIT (valve_debug, "valve", 0, "Valve");
-}
 
 GST_BOILERPLATE_FULL (GstValve, gst_valve, GstElement,
     GST_TYPE_ELEMENT, _do_init);