libs/gst/controller/gstinterpolation.c: When linearly interpolating integer types...
authorJan Schmidt <thaytan@mad.scientist.com>
Sat, 21 Jul 2007 21:20:37 +0000 (21:20 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Sat, 21 Jul 2007 21:20:37 +0000 (21:20 +0000)
commita6df9f4bac0f641375834da020b78a7f89320023
treec7b4718e52e1df05ed4894b868af141b02fd09e0
parent833590f239f18f67b2913b089b08e8bc96b5ed2b
libs/gst/controller/gstinterpolation.c: When linearly interpolating integer types, round to the nearest int by adding...

Original commit message from CVS:
* libs/gst/controller/gstinterpolation.c:
When linearly interpolating integer types, round to the nearest int
by adding 0.5. Don't do it for float/double types.
Fixes the failing controller test on my machine, which is somehow
rounding differently than on the buildbots.
ChangeLog
libs/gst/controller/gstinterpolation.c