File: ./gst.override
Function: _wrap_gst_segment_clip
Error: calling PyList_SetItem with NULL as argument 1 (py_ret) at ./gst.override:1430
1407 static PyObject *
1408 _wrap_gst_segment_clip (PyObject * self, PyObject * args, PyObject * kwargs)
1409 {
1410     static char *kwlist[] = { "format", "start", "stop", NULL};
1411     GstFormat format;
1412     gint64 start, stop;
1413     gint64 cstart = -1;
1414     gint64 cstop = -1;
1415     gboolean ret;
1416     PyObject *py_ret, *py_format;
1417 
1418     if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OLL:GstSegment.clip",
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1419 				     kwlist, &py_format, &start, &stop))
1420 	return NULL;
1421     if (pyg_enum_get_value(GST_TYPE_FORMAT, py_format, (gint *)&format))
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.override:1421
when considering value == (gint)0 from ./gst.override:1421
taking False path
1422 	return NULL;
1423     pyg_begin_allow_threads;
when considering value == (gboolean)0 from ./gst.override:1423
taking False path
1424     ret = gst_segment_clip (pyg_boxed_get(self, GstSegment), format, start, stop,
1425 			    &cstart, &cstop);
1426     pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
1427 
1428     /* Returns gboolean ret, gint64 clip_start, gint64 clip_stop */
1429     py_ret = PyList_New(3);
when PyList_New() fails
1430     PyList_SetItem(py_ret, 0, PyBool_FromLong(ret));
PyBool_FromLong() returns
calling PyList_SetItem with NULL as argument 1 (py_ret) at ./gst.override:1430
PyList_SetItem() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 3 similar trace(s) to this
1431     PyList_SetItem(py_ret, 1, PyLong_FromLongLong(cstart));
1432     PyList_SetItem(py_ret, 2, PyLong_FromLongLong(cstop));
1433 
1434     return py_ret;
1435 }

File: ./gst.override
Function: _wrap_gst_segment_clip
Error: returning (PyObject*)NULL without setting an exception
1407 static PyObject *
1408 _wrap_gst_segment_clip (PyObject * self, PyObject * args, PyObject * kwargs)
1409 {
1410     static char *kwlist[] = { "format", "start", "stop", NULL};
1411     GstFormat format;
1412     gint64 start, stop;
1413     gint64 cstart = -1;
1414     gint64 cstop = -1;
1415     gboolean ret;
1416     PyObject *py_ret, *py_format;
1417 
1418     if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OLL:GstSegment.clip",
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1419 				     kwlist, &py_format, &start, &stop))
1420 	return NULL;
1421     if (pyg_enum_get_value(GST_TYPE_FORMAT, py_format, (gint *)&format))
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.override:1421
when considering range: -0x80000000 <= value <= -1
taking True path
1422 	return NULL;
1423     pyg_begin_allow_threads;
1424     ret = gst_segment_clip (pyg_boxed_get(self, GstSegment), format, start, stop,
1425 			    &cstart, &cstop);
1426     pyg_end_allow_threads;
1427 
1428     /* Returns gboolean ret, gint64 clip_start, gint64 clip_stop */
1429     py_ret = PyList_New(3);
1430     PyList_SetItem(py_ret, 0, PyBool_FromLong(ret));
1431     PyList_SetItem(py_ret, 1, PyLong_FromLongLong(cstart));
1432     PyList_SetItem(py_ret, 2, PyLong_FromLongLong(cstop));
1433 
1434     return py_ret;
1435 }
returning (PyObject*)NULL without setting an exception