File: gst.c
Function: _wrap_gst_message_new_custom
Error: returning (PyObject*)NULL without setting an exception
26071 static PyObject *
26072 _wrap_gst_message_new_custom(PyObject *self, PyObject *args, PyObject *kwargs)
26073 {
26074     static char *kwlist[] = { "type", "src", "structure", NULL };
26075     PyObject *py_type = NULL, *py_structure, *py_ret;
26076     PyGObject *src;
26077     GstMessage *ret;
26078     GstMessageType type;
26079     GstStructure *structure = NULL;
26080 
26081     if (!PyArg_ParseTupleAndKeywords(args, kwargs,"OO!O:message_new_custom", kwlist, &py_type, &PyGstObject_Type, &src, &py_structure))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
26082         return NULL;
26083     if (pyg_flags_get_value(GST_TYPE_MESSAGE_TYPE, py_type, (gint *)&type))
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
calling unknown gint (*) (GType, struct PyObject *, gint *) from gst.c:26083
when considering range: -0x80000000 <= value <= -1
taking True path
26084         return NULL;
26085     if (pyg_boxed_check(py_structure, GST_TYPE_STRUCTURE))
26086         structure = pyg_boxed_get(py_structure, GstStructure);
26087     else {
26088         PyErr_SetString(PyExc_TypeError, "structure should be a GstStructure");
26089         return NULL;
26090     }
26091    structure = g_boxed_copy(GST_TYPE_STRUCTURE, structure);
26092     pyg_begin_allow_threads;
26093     ret = gst_message_new_custom(type, GST_OBJECT(src->obj), structure);
26094     pyg_end_allow_threads;
26095     py_ret = pygstminiobject_new((GstMiniObject *)ret);
26096     if (ret != NULL)
26097        gst_mini_object_unref((GstMiniObject *)ret);
26098     return py_ret;
26099 }
returning (PyObject*)NULL without setting an exception