mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
liveadder: move debug-category registration to type init
This commit is contained in:
parent
afa30fb8ea
commit
69ea2ec2ba
1 changed files with 4 additions and 5 deletions
|
@ -91,8 +91,11 @@ typedef struct _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);
|
||||
|
@ -183,9 +186,6 @@ gst_live_adder_class_init (GstLiveAdderClass * klass)
|
|||
g_param_spec_uint ("latency", "Buffer latency in ms",
|
||||
"Amount of data to buffer", 0, G_MAXUINT, DEFAULT_LATENCY_MS,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (live_adder_debug, "liveadder", 0, "Live Adder");
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -221,7 +221,6 @@ gst_live_adder_init (GstLiveAdder * adder, GstLiveAdderClass * klass)
|
|||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
gst_live_adder_finalize (GObject * object)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue