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 624882 - Add support for gst.Fraction property getters
Add support for gst.Fraction property getters
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
unspecified
Other Linux
: Normal blocker
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-20 22:33 UTC by Thibault Saunier
Modified: 2010-07-26 17:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thibault Saunier 2010-07-20 22:33:51 UTC
Everything is in the title, when I try to get the "aspect-ratio" property of an aspectratiocrop element, I get TypeError: unknown type GstFraction.

You can reproduce the bug by doing:
import gst
t = gst.element_factory_make('aspectratiocrop')
t.set_property( "aspect-ratio" , gst.Fraction(1,5))
t.get_property( "aspect-ratio"  )

This will return:
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
TypeError: unknown type GstFraction


I tried it with the ubuntu lucid package 0.10.19 and the latest code from git and I always get this same result.
Comment 1 Edward Hervey 2010-07-21 06:44:17 UTC
Confirmed. I wonder how this one slipped through all these years.
Comment 2 Alessandro Decina 2010-07-26 17:44:10 UTC
commit e20157bda2efe24f0847d38dd5810428347169b2
Author: Alessandro Decina <alessandro.d@gmail.com>
Date:   Mon Jul 26 19:29:53 2010 +0200

    gst: implement getters and setters for GST_TYPE_FRACTION properties. Fixes #624882.