mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-26 16:06:52 +00:00
valve: move debug-category registration to type init
This commit is contained in:
parent
69ea2ec2ba
commit
5fa5e2d777
1 changed files with 1 additions and 4 deletions
|
@ -82,11 +82,8 @@ static GstFlowReturn gst_valve_buffer_alloc (GstPad * pad, guint64 offset,
|
||||||
static GstFlowReturn gst_valve_chain (GstPad * pad, GstBuffer * buffer);
|
static GstFlowReturn gst_valve_chain (GstPad * pad, GstBuffer * buffer);
|
||||||
static GstCaps *gst_valve_getcaps (GstPad * pad);
|
static GstCaps *gst_valve_getcaps (GstPad * pad);
|
||||||
|
|
||||||
static void
|
#define _do_init(bla) \
|
||||||
_do_init (GType type)
|
|
||||||
{
|
|
||||||
GST_DEBUG_CATEGORY_INIT (valve_debug, "valve", 0, "Valve");
|
GST_DEBUG_CATEGORY_INIT (valve_debug, "valve", 0, "Valve");
|
||||||
}
|
|
||||||
|
|
||||||
GST_BOILERPLATE_FULL (GstValve, gst_valve, GstElement,
|
GST_BOILERPLATE_FULL (GstValve, gst_valve, GstElement,
|
||||||
GST_TYPE_ELEMENT, _do_init);
|
GST_TYPE_ELEMENT, _do_init);
|
||||||
|
|
Loading…
Reference in a new issue