GNOME Bugzilla – Bug 381243
No checks are made when converting from gst.Fraction to GValue
Last modified: 2007-03-01 14:25:42 UTC
Currently no checks are made to make sure the values of the python gst.Fraction object can actually fit properly in a GstFraction GValue. The following patch checks that the values are correct, and simplifies the values of gst.Fraction before.
Created attachment 77482 [details] [review] fix
2007-03-01 Edward Hervey <edward@fluendo.com> * gst/__init__.py: Added __eq__ method to fractions so we can check if two fractions are equal. * gst/pygstvalue.c: (my_gcd), (pygst_value_from_pyobject): Attempt to simplify gst.Fraction before filling in a GValue. Fixes #381243