mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
libs/gst/controller/gstinterpolation.c: Use an array of the correct type when using _get_value_array with linear inte...
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.
This commit is contained in:
parent
e87a530b73
commit
e55a7a7a85
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2007-05-22 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* gst/gstelement.c (gst_element_requires_clock,
|
* gst/gstelement.c (gst_element_requires_clock,
|
||||||
|
|
|
@ -316,7 +316,7 @@ interpolate_linear_get_##type##_value_array (GstControlledProperty * prop, \
|
||||||
{ \
|
{ \
|
||||||
gint i; \
|
gint i; \
|
||||||
GstClockTime ts = timestamp; \
|
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++) { \
|
for(i = 0; i < value_array->nbsamples; i++) { \
|
||||||
*values = _interpolate_linear_get_##type (prop, ts); \
|
*values = _interpolate_linear_get_##type (prop, ts); \
|
||||||
|
|
Loading…
Reference in a new issue