controller: remove gst_object_get_value_arrays
authorStefan Sauer <ensonic@users.sf.net>
Tue, 6 Dec 2011 07:35:10 +0000 (08:35 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Tue, 6 Dec 2011 07:35:10 +0000 (08:35 +0100)
One can easilly loop over the controlled properties manually. This is step 1 in
removing GstValueArray.

docs/random/porting-to-0.11.txt
gst/gstobject.c
gst/gstobject.h

index 0b9477a..a83f4cf 100644 (file)
@@ -442,3 +442,7 @@ The 0.11 porting guide
     gst_controller_get_control_source -> gst_object_get_control_source
 
     gst_controller_set_property_disabled -> gst_object_set_controlled_property_disabled
+
+    gst_object_get_value_arrays has been removed. Loop over the controlled
+    properties fetch the value array.
+
index 65a6e78..4415228 100644 (file)
@@ -1427,40 +1427,6 @@ gst_object_get_value (GstObject * object, const gchar * property_name,
 }
 
 /**
- * gst_object_get_value_arrays:
- * @object: the object that has controlled properties
- * @timestamp: the time that should be processed
- * @value_arrays: list to return the control-values in
- *
- * Function to be able to get an array of values for one or more given element
- * properties.
- *
- * If the GstValueArray->values array in list nodes is NULL, it will be created
- * by the function.
- * The type of the values in the array are the same as the property's type.
- *
- * The g_object_* functions are just convenience functions for GObject
- *
- * Returns: %TRUE if the given array(s) could be filled, %FALSE otherwise
- */
-gboolean
-gst_object_get_value_arrays (GstObject * object, GstClockTime timestamp,
-    GSList * value_arrays)
-{
-  gboolean res = TRUE;
-  GSList *node;
-
-  g_return_val_if_fail (GST_IS_OBJECT (object), FALSE);
-  g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (timestamp), FALSE);
-  g_return_val_if_fail (value_arrays, FALSE);
-
-  for (node = value_arrays; (res && node); node = g_slist_next (node)) {
-    res = gst_object_get_value_array (object, timestamp, node->data);
-  }
-  return res;
-}
-
-/**
  * gst_object_get_value_array:
  * @object: the object that has controlled properties
  * @timestamp: the time that should be processed
index eaa5910..defa106 100644 (file)
@@ -250,8 +250,6 @@ GstControlSource *
 
 GValue *         gst_object_get_value           (GstObject * object, const gchar * property_name,
                                                  GstClockTime timestamp);
-gboolean         gst_object_get_value_arrays    (GstObject * object, GstClockTime timestamp,
-                                                 GSList * value_arrays);
 gboolean         gst_object_get_value_array     (GstObject * object, GstClockTime timestamp,
                                                  GstValueArray * value_array);