GNOME Bugzilla – Bug 564620
[0.11][API] Make gst.Pad.query_* raise exceptions
Last modified: 2012-02-08 10:02:24 UTC
Currently gst.Pad.query_* methods return None when the query fails. This is particularly annoying as when a query succeeds the result is a two element tuple, so you it's natural to unpack it like a, b = pad.query_*(...) except that when there's a failure, python throws an exception at you as None can't be unpacked in two items. The methods should raise exceptions or at least return (None, None).
Is this still relevant if gst-python is not ported to 0.11 with only pygi being used? (ie. can it be fixed for pygi?)
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!
Also somewhat related: bug #669016