mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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:
parent
6bad19a588
commit
cc5d085a00
1 changed files with 2 additions and 2 deletions
|
@ -126,6 +126,8 @@ gst_v4l2src_base_init (gpointer 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_add_pad_template
|
||||
|
@ -155,8 +157,6 @@ gst_v4l2src_class_init (GstV4l2SrcClass * klass)
|
|||
"or adapt FPS to suit the number of frabbed frames",
|
||||
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->set_caps = gst_v4l2src_set_caps;
|
||||
basesrc_class->start = gst_v4l2src_start;
|
||||
|
|
Loading…
Reference in a new issue