26436 static PyObject *
26437 _wrap_gst_query_new_application(PyObject *self, PyObject *args, PyObject *kwargs)
26438 {
26439 static char *kwlist[] = { "type", "structure", NULL };
26440 PyObject *py_type = NULL, *py_structure, *py_ret;
26441 GstQuery *ret;
26442 GstStructure *structure = NULL;
26443 GstQueryType type;
26444
26445 if (!PyArg_ParseTupleAndKeywords(args, kwargs,"OO:query_new_application", kwlist, &py_type, &py_structure))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
26446 return NULL;
26447 if (pyg_enum_get_value(GST_TYPE_QUERY_TYPE, py_type, (gint *)&type))
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:26447
when considering range: -0x80000000 <= value <= -1
taking True path
26448 return NULL;
26449 if (pyg_boxed_check(py_structure, GST_TYPE_STRUCTURE))
26450 structure = pyg_boxed_get(py_structure, GstStructure);
26451 else {
26452 PyErr_SetString(PyExc_TypeError, "structure should be a GstStructure");
26453 return NULL;
26454 }
26455 pyg_begin_allow_threads;
26456 ret = gst_query_new_application(type, structure);
26457 pyg_end_allow_threads;
26458 py_ret = pygstminiobject_new((GstMiniObject *)ret);
26459 if (ret != NULL)
26460 gst_mini_object_unref((GstMiniObject *)ret);
26461 return py_ret;
26462 }
returning (PyObject*)NULL without setting an exception