File: | ./gst.override |
Function: | _wrap_gst_registry_get_feature_list |
Error: | calling PyList_SetItem with NULL as argument 1 (list) at ./gst.override:530 |
502 static PyObject *
503 _wrap_gst_registry_get_feature_list (PyGObject *self, PyObject *args, PyObject *kwargs)
504 {
505 static char *kwlist[] = { "type", NULL };
506 PyObject *py_type = NULL;
507 GType type;
508
509 GstRegistry *registry;
510 GList *l, *features;
511 PyObject *list;
512 gint i;
513
514
515 if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
516 "O:GstRegistry.get_feature_list", kwlist, &py_type))
517 return NULL;
518 if ((type = pyg_type_from_object(py_type)) == 0)
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
calling unknown GType (*) (struct PyObject *) from ./gst.override:518
when considering range: 1 <= value <= 0xffffffffffffffffL
taking False path
519 return NULL;
520
521 registry = GST_REGISTRY (self->obj);
522
523 pyg_begin_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
524 features = gst_registry_get_feature_list (registry, type);
525 pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
526
527 list = PyList_New (g_list_length(features));
when PyList_New() fails
528 for (l = features, i = 0; l; l = l->next, ++i) {
when treating unknown struct GList * from ./gst.override:524 as non-NULL
taking True path
529 GstPluginFeature *feature = (GstPluginFeature *) l->data;
530 PyList_SetItem (list, i, pygobject_new (G_OBJECT (feature)));
when call succeeds
calling PyList_SetItem with NULL as argument 1 (list) at ./gst.override:530
PyList_SetItem() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 5 similar trace(s) to this
531 gst_object_unref (feature);
532 }
533 g_list_free (features);
534
535 return list;
536 }
File: | ./gst.override |
Function: | _wrap_gst_registry_get_feature_list |
Error: | returning (PyObject*)NULL without setting an exception |
502 static PyObject *
503 _wrap_gst_registry_get_feature_list (PyGObject *self, PyObject *args, PyObject *kwargs)
504 {
505 static char *kwlist[] = { "type", NULL };
506 PyObject *py_type = NULL;
507 GType type;
508
509 GstRegistry *registry;
510 GList *l, *features;
511 PyObject *list;
512 gint i;
513
514
515 if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
516 "O:GstRegistry.get_feature_list", kwlist, &py_type))
517 return NULL;
518 if ((type = pyg_type_from_object(py_type)) == 0)
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
calling unknown GType (*) (struct PyObject *) from ./gst.override:518
when considering value == (GType)0 from ./gst.override:518
taking True path
519 return NULL;
520
521 registry = GST_REGISTRY (self->obj);
522
523 pyg_begin_allow_threads;
524 features = gst_registry_get_feature_list (registry, type);
525 pyg_end_allow_threads;
526
527 list = PyList_New (g_list_length(features));
528 for (l = features, i = 0; l; l = l->next, ++i) {
529 GstPluginFeature *feature = (GstPluginFeature *) l->data;
530 PyList_SetItem (list, i, pygobject_new (G_OBJECT (feature)));
531 gst_object_unref (feature);
532 }
533 g_list_free (features);
534
535 return list;
536 }
returning (PyObject*)NULL without setting an exception