22436 static PyObject *
22437 _wrap_gst_query_set_duration(PyGstMiniObject *self, PyObject *args, PyObject *kwargs)
22438 {
22439 static char *kwlist[] = { "format", "duration", NULL };
22440 PyObject *py_format = NULL;
22441 GstFormat format;
22442 gint64 duration;
22443
22444 if (!PyArg_ParseTupleAndKeywords(args, kwargs,"OL:GstQuery.set_duration", kwlist, &py_format, &duration))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
22445 return NULL;
22446 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.c:22446
when considering range: -0x80000000 <= value <= -1
taking True path
22447 return NULL;
22448 pyg_begin_allow_threads;
22449 gst_query_set_duration(GST_QUERY(self->obj), format, duration);
22450 pyg_end_allow_threads;
22451 Py_INCREF(Py_None);
22452 return Py_None;
22453 }
returning (PyObject*)NULL without setting an exception
found 1 similar trace(s) to this