After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 532809 - gst-python version of gst.Fraction doesn't simplify
gst-python version of gst.Fraction doesn't simplify
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other opensolaris
: Normal normal
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-12 16:45 UTC by Jan Schmidt
Modified: 2008-05-14 16:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simpilfy fractions in python (1.29 KB, patch)
2008-05-12 16:46 UTC, Jan Schmidt
committed Details | Review

Description Jan Schmidt 2008-05-12 16:45:11 UTC
gst-python overrides gst.Fraction with a pure-python implementation, but one which doesn't behave quite the same as the C fraction GValue in that it doesn't implicitly simplify the fraction after each operation.

Attaching patch for python dudes' inspection
Comment 1 Jan Schmidt 2008-05-12 16:46:10 UTC
Created attachment 110784 [details] [review]
simpilfy fractions in python
Comment 2 Edward Hervey 2008-05-14 16:02:50 UTC
2008-05-14  Edward Hervey  <edward.hervey@collabora.co.uk>

	Patch by: Jan Schmidt <thaytan at mad dot scientist dot com>
	* gst/__init__.py:
	Make gst.Fraction simplify like the C counterpart
	Fixes #532809