447 static PyObject *
448 _wrap_gst_element_query_convert (PyGObject *self, PyObject *args, PyObject *kwargs)
449 {
450 static char *kwlist[] = { "fromformat", "fromvalue", "destformat", NULL };
451 PyObject *pfromformat, *pdestformat;
452 GstFormat srcformat, destformat;
453 gint64 fromval, dstval;
454 gboolean res;
455
456 /* Input : src_format, src_val, dst_format */
457 /* Returns : dst_format, dst_val OR None */
458
459 if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
460 "OLO:GstElement.query_convert",
461 kwlist, &pfromformat, &fromval, &pdestformat))
462 return NULL;
463
464 if (pyg_enum_get_value(GST_TYPE_FORMAT, pfromformat, (gint *) &srcformat)) {
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:464
when considering value == (gint)0 from gstelement.override:464
taking False path
465 PyErr_SetString(PyExc_TypeError, "argument should be a GstFormat");
466 return NULL;
467 }
468 if (pyg_enum_get_value(GST_TYPE_FORMAT, pdestformat, (gint *) &destformat)) {
calling unknown gint (*) (GType, struct PyObject *, gint *) from gstelement.override:468
when considering value == (gint)0 from gstelement.override:468
taking False path
469 PyErr_SetString(PyExc_TypeError, "argument should be a GstFormat");
470 return NULL;
471 }
472
473 pyg_begin_allow_threads;
when considering value == (gboolean)0 from gstelement.override:473
taking False path
474 res = gst_element_query_convert (GST_ELEMENT(self->obj),
475 srcformat, fromval,
476 &destformat, &dstval);
477 pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
478
479 if (!res) {
when considering range: -0x80000000 <= value <= -1
taking False path
480 Py_INCREF(Py_None);
481 return Py_None;
482 }
483
484 return Py_BuildValue("(OL)",
when call succeeds
when Py_BuildValue() succeeds
new ref from call through function pointer allocated at: return Py_BuildValue("(OL)",
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
485 pyg_enum_from_gtype(GST_TYPE_FORMAT, destformat),
486 dstval);
487 }
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 13 similar trace(s) to this