interpolationcontrolsource: fix write over the array size
authorStefan Sauer <ensonic@users.sf.net>
Thu, 1 Oct 2015 20:09:58 +0000 (22:09 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 1 Oct 2015 20:12:50 +0000 (22:12 +0200)
The '++' got incidentially added during the refactoring in
2fe3939ce7ea84c45dd922e7f1097dd07f11fc5d.

libs/gst/controller/gstinterpolationcontrolsource.c

index a52f54e..5957049 100644 (file)
@@ -229,7 +229,7 @@ interpolate_linear_get_value_array (GstTimedValueControlSource * self,
       ret = TRUE;
       GST_LOG ("values[%3d]=%lf", i, *values);
     } else {
       ret = TRUE;
       GST_LOG ("values[%3d]=%lf", i, *values);
     } else {
-      *values++ = NAN;
+      *values = NAN;
       GST_LOG ("values[%3d]=-", i);
     }
     ts += interval;
       GST_LOG ("values[%3d]=-", i);
     }
     ts += interval;