summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-09-28 14:23:01 +0300
committerStefan Kost <ensonic@users.sf.net>2010-09-28 14:23:40 +0300
commit5fa5e2d7772ea0deb60a1c94b7422757cdc372d2 (patch)
tree46446f4d3f93a065ae8682dbb8ffaaa132abf738
parent69ea2ec2baa43464568098bcee7d8212ed513aa1 (diff)
valve: move debug-category registration to type init
-rw-r--r--gst/valve/gstvalve.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/valve/gstvalve.c b/gst/valve/gstvalve.c
index cb431d4df..cc8d8f0ec 100644
--- a/gst/valve/gstvalve.c
+++ b/gst/valve/gstvalve.c
@@ -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);