211 static PyObject *
212 _wrap_gst_event_new_custom(PyObject *self, PyObject *args, PyObject *kwargs)
213 {
214 static char *kwlist[] = { "type", "structure", NULL };
215 PyObject *py_type = NULL, *py_structure, *py_ret;
216 GstEvent *ret;
217 GstStructure *structure = NULL;
218 GstEventType type;
219
220 if (!PyArg_ParseTupleAndKeywords(args, kwargs,"OO:event_new_custom", kwlist, &py_type, &py_structure))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
221 return NULL;
222 if (pyg_enum_get_value(GST_TYPE_EVENT_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 gstevent.override:222
when considering range: -0x80000000 <= value <= -1
taking True path
223 return NULL;
224 if (pyg_boxed_check(py_structure, GST_TYPE_STRUCTURE))
225 structure = pyg_boxed_get(py_structure, GstStructure);
226 else {
227 PyErr_SetString(PyExc_TypeError, "structure should be a GstStructure");
228 return NULL;
229 }
230 pyg_begin_allow_threads;
231 ret = gst_event_new_custom(type, gst_structure_copy(structure));
232 pyg_end_allow_threads;
233 py_ret = pygstminiobject_new((GstMiniObject *)ret);
234 if (ret != NULL)
235 gst_mini_object_unref((GstMiniObject *)ret);
236 return py_ret;
237 }
returning (PyObject*)NULL without setting an exception