mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
controller: remove gst_object_get_value_arrays
One can easilly loop over the controlled properties manually. This is step 1 in removing GstValueArray.
This commit is contained in:
parent
0e935321af
commit
4783251b2e
3 changed files with 4 additions and 36 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -1426,40 +1426,6 @@ gst_object_get_value (GstObject * object, const gchar * property_name,
|
|||
return val;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue