summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-03-14 17:24:03 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-03-14 17:24:03 +0000
commit6c47f36fced194474692b9c312e2831f5be4941d (patch)
treeadceb9a3ce8910fb5766c9002a303a807146823f
parentaab9a093104fe3f6b9755ca41090f4b887e9d9c2 (diff)
downloadgst-plugins-bad-6c47f36fced194474692b9c312e2831f5be4941d.tar.gz
gst-plugins-bad-6c47f36fced194474692b9c312e2831f5be4941d.tar.bz2
gst-plugins-bad-6c47f36fced194474692b9c312e2831f5be4941d.zip
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().
-rw-r--r--ChangeLog7
-rw-r--r--sys/v4l2/gstv4l2src.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c96cc600..36eb547b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-14 Edward Hervey <edward@fluendo.com>
+
+ * 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().
+
2006-03-13 Tim-Philipp Müller <tim at centricular dot net>
* ext/taglib/gsttaglib.cc:
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 180ab94f..2c331dd1 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -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;