G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstControlSource, gst_control_source,
GST_TYPE_OBJECT, _do_init);
+static GObject *gst_control_source_constructor (GType type,
+ guint n_construct_params, GObjectConstructParam * construct_params);
+
static void
gst_control_source_class_init (GstControlSourceClass * klass)
{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+ gobject_class->constructor = gst_control_source_constructor;
}
static void
self->get_value_array = NULL;
}
+static GObject *
+gst_control_source_constructor (GType type, guint n_construct_params,
+ GObjectConstructParam * construct_params)
+{
+ GObject *self;
+
+ self =
+ G_OBJECT_CLASS (gst_control_source_parent_class)->constructor (type,
+ n_construct_params, construct_params);
+ gst_object_ref_sink (self);
+
+ return self;
+}
+
/**
* gst_control_source_get_value:
* @self: the #GstControlSource object
* @n_values: the number of values to fetch
* @value_array: array to put control-values in
*
- * Gets an array of values for for this #GstControlSource.
+ * Gets an array of values for for this #GstControlSource. Values that are
+ * undefined contain NANs.
*
* Returns: %TRUE if the given array could be filled, %FALSE otherwise
*/