GNOME Bugzilla – Bug 540221
Empty GstMiniObject GValues raise a SystemError
Last modified: 2008-06-26 09:15:04 UTC
See interactive session below. Problem only occurs if the returned value is NULL (and may affect other GstMiniObject based types as well). Might be due to the pygobject, or to gst-python. >>> import gst >>> f = gst.element_factory_make('filesink') >>> b = f.get_property('last-buffer') Traceback (most recent call last):
+ Trace 201390
it's a bug in gst-python. The registered type conversion from miniobject GValue to Python type would return NULL if the GValue contained NULL. A proper fix would be to return None (no object).
2008-06-26 Edward Hervey <edward.hervey@collabora.co.uk> * gst/gstmodule.c: (pygstminiobject_from_gvalue): Return None if GstMiniObject GValue doesn't contain anything (NULL). Fixes #540221