4944 static PyObject *
4945 _wrap_gst_element_seek(PyGObject *self, PyObject *args, PyObject *kwargs)
4946 {
4947 static char *kwlist[] = { "rate", "format", "flags", "cur_type", "cur", "stop_type", "stop", NULL };
4948 GstSeekType cur_type, stop_type;
4949 PyObject *py_format = NULL, *py_flags = NULL, *py_cur_type = NULL, *py_stop_type = NULL;
4950 double rate;
4951 int ret;
4952 GstFormat format;
4953 gint64 cur, stop;
4954 GstSeekFlags flags;
4955
4956 if (!PyArg_ParseTupleAndKeywords(args, kwargs,"dOOOLOL:GstElement.seek", kwlist, &rate, &py_format, &py_flags, &py_cur_type, &cur, &py_stop_type, &stop))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
4957 return NULL;
4958 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:4958
when considering range: -0x80000000 <= value <= -1
taking True path
4959 return NULL;
4960 if (pyg_flags_get_value(GST_TYPE_SEEK_FLAGS, py_flags, (gint *)&flags))
4961 return NULL;
4962 if (pyg_enum_get_value(GST_TYPE_SEEK_TYPE, py_cur_type, (gint *)&cur_type))
4963 return NULL;
4964 if (pyg_enum_get_value(GST_TYPE_SEEK_TYPE, py_stop_type, (gint *)&stop_type))
4965 return NULL;
4966 pyg_begin_allow_threads;
4967 ret = gst_element_seek(GST_ELEMENT(self->obj), rate, format, flags, cur_type, cur, stop_type, stop);
4968 pyg_end_allow_threads;
4969 return PyBool_FromLong(ret);
4970
4971 }
returning (PyObject*)NULL without setting an exception
found 7 similar trace(s) to this