sys/v4l2/gstv4l2src.c: Initialization of the debugging category should be as early as possible, moving it from _class...

Original commit message from CVS:
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_base_init),
(gst_v4l2src_class_init):
Initialization of the debugging category should be as early as possible,
moving it from _class_init() to beginning of _base_init().
This commit is contained in:
Edward Hervey 2006-03-14 17:24:03 +00:00
parent 6bad19a588
commit cc5d085a00

View file

@ -126,6 +126,8 @@ gst_v4l2src_base_init (gpointer g_class)
{ {
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class); GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
GST_DEBUG_CATEGORY_INIT (v4l2src_debug, "v4l2src", 0, "V4L2 source element");
gst_element_class_set_details (gstelement_class, &gst_v4l2src_details); gst_element_class_set_details (gstelement_class, &gst_v4l2src_details);
gst_element_class_add_pad_template gst_element_class_add_pad_template
@ -155,8 +157,6 @@ gst_v4l2src_class_init (GstV4l2SrcClass * klass)
"or adapt FPS to suit the number of frabbed frames", "or adapt FPS to suit the number of frabbed frames",
TRUE, G_PARAM_READWRITE)); TRUE, G_PARAM_READWRITE));
GST_DEBUG_CATEGORY_INIT (v4l2src_debug, "v4l2src", 0, "V4L2 source element");
basesrc_class->get_caps = gst_v4l2src_get_caps; basesrc_class->get_caps = gst_v4l2src_get_caps;
basesrc_class->set_caps = gst_v4l2src_set_caps; basesrc_class->set_caps = gst_v4l2src_set_caps;
basesrc_class->start = gst_v4l2src_start; basesrc_class->start = gst_v4l2src_start;