Behaviour of InterpolationControlSource with properties that span +-INT_MAX

Sebastian Dröge slomo at circular-chaos.org
Tue Aug 6 23:47:07 PDT 2013


On Mo, 2013-08-05 at 12:24 -0300, Adrian Pardini wrote:
> Hello all,
> 
> I'm trying to animate the xpos and ypos of a videomixer pad but they
> are always mapped from [0,1] to either -2147483648 or
> 2147483647 and nothing in between.
> 
> I've chased it to the macro definitions of convert_g_value_to_##type
> and convert_value_to_##type in gstdirectcontrolbinding.c where the
> expression
> 
> v = pspec->minimum + (g##type) ROUNDING_OP ((pspec->maximum -
> pspec->minimum) * s);
> 
> results in:
> 
> v = -2147483648 + (g##type) ROUNDING_OP ((-1) * s);
> 
> because 2147483647 - (-2147483648) overflows to -1;
> 
> Currently I sidestepped it changing the property definitions inside
> videomixer because I'm not sure about how to fix it in a generic way
> that doesn't break everything else.

Hi,

could you file a bug about this at http://bugzilla.gnome.org against
GStreamer? I currently don't know how to fix this generically but it's
definitely something that has to be fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130807/fd1cdf66/attachment.pgp>


More information about the gstreamer-devel mailing list