1479 static PyObject *
1480 _wrap_gst_pad_query_peer_position (PyGObject *self, PyObject *args)
1481 {
1482 gint64 cur;
1483 gint format;
1484 PyObject *pformat;
1485 PyObject *ret;
1486
1487 pformat = (PyObject*)PyTuple_GetItem(args, 0);
1488 if (pyg_enum_get_value (GST_TYPE_FORMAT, pformat, &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 gstpad.override:1488
when considering value == (gint)0 from gstpad.override:1488
taking False path
1489 PyErr_SetString(PyExc_TypeError, "argument should be a GstFormat");
1490 return NULL;
1491 }
1492
1493 if ((gst_pad_query_peer_position(GST_PAD (self->obj), (GstFormat*) &format, &cur))) {
when considering range: -0x80000000 <= value <= -1
taking True path
1494 ret = PyList_New(2);
when PyList_New() fails
1495 PyList_SetItem(ret, 0, PyLong_FromLongLong(cur));
when PyLong_FromLongLong() succeeds
calling PyList_SetItem with NULL as argument 1 (ret) at gstpad.override:1495
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
1496 PyList_SetItem(ret, 1, pyg_enum_from_gtype (GST_TYPE_FORMAT, format ));
1497 } else {
1498 Py_INCREF(Py_None);
1499 ret = Py_None;
1500 }
1501
1502 return ret;
1503 }