Commit 4e33f9fd authored by Edward Hervey's avatar Edward Hervey 🤘

gst/gstmodule.c: Return None if GstMiniObject GValue doesn't contain anything (NULL).

Original commit message from CVS:
* gst/gstmodule.c: (pygstminiobject_from_gvalue):
Return None if GstMiniObject GValue doesn't contain anything (NULL).
Fixes #540221
parent f2505d6e
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
2008-06-20 Jan Schmidt <jan.schmidt@sun.com> 2008-06-20 Jan Schmidt <jan.schmidt@sun.com>
* configure.ac: * configure.ac:
......
...@@ -63,8 +63,10 @@ pygstminiobject_from_gvalue(const GValue *value) ...@@ -63,8 +63,10 @@ pygstminiobject_from_gvalue(const GValue *value)
{ {
GstMiniObject *miniobj; GstMiniObject *miniobj;
if ((miniobj = gst_value_get_mini_object (value)) == NULL) if ((miniobj = gst_value_get_mini_object (value)) == NULL) {
return NULL; Py_INCREF(Py_None);
return Py_None;
}
return pygstminiobject_new(miniobj); return pygstminiobject_new(miniobj);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment