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 540221 - Empty GstMiniObject GValues raise a SystemError
Empty GstMiniObject GValues raise a SystemError
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: 0.10.13
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-25 21:18 UTC by Mark Nauwelaerts
Modified: 2008-06-26 09:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mark Nauwelaerts 2008-06-25 21:18:16 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):
  • File "<stdin>", line 1 in <module>
SystemError: error return without exception set

Comment 1 Edward Hervey 2008-06-26 09:12:52 UTC
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).
Comment 2 Edward Hervey 2008-06-26 09:15:04 UTC
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