GNOME Bugzilla – Bug 325459
Fractions cannot be used as values for gst.Structure fileds
Last modified: 2006-01-08 12:28:45 UTC
Hi, Trying to set structure fields with gst.Fraction values (common in Gstreamer 0.10) fails with an error. After some investigation, I found that the overriden set funcion for gst.Structure actually doesn't cover this case properly. The attached patch should fix the problem.
Created attachment 56639 [details] [review] Proposed patch
Created attachment 56643 [details] [review] Proposed patch, cut against latest gst-python
2006-01-08 Martin Soto <martinsoto@users.sourceforge.net> * gst/gststructure.override: (_wrap_gst_structure_set_value): Properly check for gstvalue data types. This makes it possible to set fields with fractions. * testsuite/test_caps.py: * testsuite/test_struct.py: Test for above modifications