libs/gst/controller/gstcontroller.c: Fix wrong getter for enums in controller.

Original commit message from CVS:
* libs/gst/controller/gstcontroller.c:
(gst_controlled_property_set_interpolation_mode):
Fix wrong getter for enums in controller.
This commit is contained in:
Stefan Kost 2007-06-14 20:29:09 +00:00
parent b896ba8452
commit fd12f4b150
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2007-06-14 Stefan Kost <ensonic@users.sf.net>
* libs/gst/controller/gstcontroller.c:
(gst_controlled_property_set_interpolation_mode):
Fix wrong getter for enums in controller.
2007-06-14 Tim-Philipp Müller <tim at centricular dot net> 2007-06-14 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/check/gstcheck.c: (gst_check_init): * libs/gst/check/gstcheck.c: (gst_check_init):

View file

@ -228,7 +228,7 @@ gst_controlled_property_set_interpolation_mode (GstControlledProperty * self,
interpolation_methods[mode]->get_boolean_value_array; interpolation_methods[mode]->get_boolean_value_array;
break; break;
case G_TYPE_ENUM: case G_TYPE_ENUM:
self->get = interpolation_methods[mode]->get_uint; self->get = interpolation_methods[mode]->get_enum;
self->get_value_array = self->get_value_array =
interpolation_methods[mode]->get_enum_value_array; interpolation_methods[mode]->get_enum_value_array;
break; break;
@ -1008,7 +1008,7 @@ gst_controller_get (GstController * self, gchar * property_name,
* @self: the controller to get the list from * @self: the controller to get the list from
* @property_name: the name of the property to get the list for * @property_name: the name of the property to get the list for
* *
* Returns a read-only copy of the list of GstTimedValue for the given property. * Returns a read-only copy of the list of #GstTimedValue for the given property.
* Free the list after done with it. * Free the list after done with it.
* *
* <note><para>This doesn't modify the controlled GObject property!</para></note> * <note><para>This doesn't modify the controlled GObject property!</para></note>
@ -1184,7 +1184,7 @@ gst_controller_get_value_arrays (GstController * self,
* of values. * of values.
* *
* The type of the values in the array is the same as the property's type. * The type of the values in the array is the same as the property's type.
* *
* <note><para>This doesn't modify the controlled GObject property!</para></note> * <note><para>This doesn't modify the controlled GObject property!</para></note>
* *
* Returns: %TRUE if the given array could be filled, %FALSE otherwise * Returns: %TRUE if the given array could be filled, %FALSE otherwise