418 static PyObject *
419 _wrap_gst_element_query_duration (PyGObject *self, PyObject *args)
420 {
421 gint64 cur;
422 gint format;
423 PyObject *pformat;
424 gboolean res;
425
426 pformat = (PyObject*)PyTuple_GetItem(args, 0);
427 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 gstelement.override:427
when considering value == (gint)0 from gstelement.override:427
taking False path
428 PyErr_SetString(PyExc_TypeError, "argument should be a GstFormat");
429 return NULL;
430 }
431
432 pyg_begin_allow_threads;
when considering value == (gboolean)0 from gstelement.override:432
taking False path
433 res = gst_element_query_duration(GST_ELEMENT (self->obj), (GstFormat*) &format, &cur);
434 pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
435
436 if (!res) {
when considering range: -0x80000000 <= value <= -1
taking False path
437 PyErr_Format(PyGstExc_QueryError,
438 "query failed");
439 return NULL;
440 }
441
442 return Py_BuildValue("(LO)", cur,
when call succeeds
when Py_BuildValue() succeeds
new ref from call through function pointer allocated at: return Py_BuildValue("(LO)", cur,
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
443 pyg_enum_from_gtype(GST_TYPE_FORMAT, format));
444 }
ob_refcnt of new ref from call through function pointer is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 15 similar trace(s) to this