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 681217 - TypeError: unknown type GstFraction
TypeError: unknown type GstFraction
Status: RESOLVED DUPLICATE of bug 680913
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-05 04:20 UTC by Jason Gerard DeRose
Modified: 2012-08-05 11:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jason Gerard DeRose 2012-08-05 04:20:55 UTC
Found this testing Gst.Structure.foreach(). Currently there isn't annotation for Gst.Fraction and so trying to use foreach on caps with a framerate or pixel-aspect-ratio gives you an error like this:

TypeError: unknown type GstFraction

I have a small test script here:

http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/caps-1.0

I'm not sure if g-i and PyGI have a suitable mappings for something like Gst.Fraction yet.
Comment 1 Christian Fredrik Kalager Schaller 2012-08-05 06:14:14 UTC
I don't think gst.Fraction actually exists in GStreamer, I think it was a gst-python extension. I ended up pulling it out of gst-python and putting a copy in Transmageddon:
http://git.gnome.org/browse/transmageddon/tree/src/gstfraction.py
Comment 2 Tim-Philipp Müller 2012-08-05 11:05:05 UTC

*** This bug has been marked as a duplicate of bug 680913 ***