File: gstelement.override
Function: _wrap_gst_element_get_state
Error: ob_refcnt of new ref from call through function pointer is 1 too high
79 static PyObject *
80 _wrap_gst_element_get_state(PyGObject *self, PyObject *args, PyObject *kwargs)
81 {
82     static char *kwlist[] = { "timeout", NULL };
83     GstState state;
84     GstState pending;
85     GstStateChangeReturn ret;
86     GstClockTime timeout = GST_CLOCK_TIME_NONE;
87     PyObject *tuple;
88 
89     if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
90                                      "|K:GstElement.get_state", kwlist,
91                                      &timeout)) {
92 	PyErr_SetString(PyExc_RuntimeError, "Timeout not specified correctly");
93         return NULL;
94     }
95 
96     pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
97 
98     ret = gst_element_get_state(GST_ELEMENT (self->obj), &state, &pending,
99         timeout);
100 
101     pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
102 
103     tuple = Py_BuildValue("(OOO)",
when call succeeds
when call succeeds
when call succeeds
when Py_BuildValue() succeeds
new ref from call through function pointer allocated at:     tuple = Py_BuildValue("(OOO)",
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
104         pyg_enum_from_gtype (GST_TYPE_STATE_CHANGE_RETURN, ret),
105         pyg_enum_from_gtype (GST_TYPE_STATE, state),
106         pyg_enum_from_gtype (GST_TYPE_STATE, pending));
107 
108     return tuple;
109 }
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 29 similar trace(s) to this