libs/gst/controller/gstinterpolation.c: Use an array of the correct type when using...
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 22 May 2007 09:56:25 +0000 (09:56 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 22 May 2007 09:56:25 +0000 (09:56 +0000)
Original commit message from CVS:
* libs/gst/controller/gstinterpolation.c:
Use an array of the correct type when using _get_value_array with
linear interpolation.

ChangeLog
libs/gst/controller/gstinterpolation.c

index b7f40c1..f5c4d95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-22  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * libs/gst/controller/gstinterpolation.c:
+       Use an array of the correct type when using _get_value_array with
+       linear interpolation.
+
 2007-05-22  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/gstelement.c (gst_element_requires_clock,
index e652e4d..76fa1e8 100644 (file)
@@ -316,7 +316,7 @@ interpolate_linear_get_##type##_value_array (GstControlledProperty * prop, \
 { \
   gint i; \
   GstClockTime ts = timestamp; \
-  gint *values = (gint *) value_array->values; \
+  g##type *values = (g##type *) value_array->values; \
   \
   for(i = 0; i < value_array->nbsamples; i++) { \
     *values = _interpolate_linear_get_##type (prop, ts); \