mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
This commit is contained in:
parent
f2505d6ec6
commit
4e33f9fdcc
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -63,8 +63,10 @@ pygstminiobject_from_gvalue(const GValue *value)
|
|||
{
|
||||
GstMiniObject *miniobj;
|
||||
|
||||
if ((miniobj = gst_value_get_mini_object (value)) == NULL)
|
||||
return NULL;
|
||||
if ((miniobj = gst_value_get_mini_object (value)) == NULL) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
return pygstminiobject_new(miniobj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue