gst/gstmessage.override (_wrap_gst_message_parse_error): Always return a tuple of length 2.

Original commit message from CVS:
2005-08-03  Andy Wingo  <wingo@pobox.com>

* gst/gstmessage.override (_wrap_gst_message_parse_error): Always
return a tuple of length 2.
This commit is contained in:
Andy Wingo 2005-08-03 12:48:40 +00:00
parent e6c416ca0d
commit 27ca26ae0b
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2005-08-03 Andy Wingo <wingo@pobox.com>
* gst/gstmessage.override (_wrap_gst_message_parse_error): Always
return a tuple of length 2.
* examples/pipeline-tester: Commit some updates I had.
* configure.ac (PYGST_CFLAGS): pygst.py generation is handled by

View file

@ -97,8 +97,12 @@ _wrap_gst_message_parse_error (PyGstMiniObject *self)
ret = PyList_New(0);
PyList_Append(ret, pyg_boxed_new (GST_TYPE_G_ERROR, error, TRUE, TRUE));
if (debug != NULL)
if (debug != NULL) {
PyList_Append(ret, PyString_FromString(debug));
} else {
Py_INCREF (Py_None);
PyList_Append(ret, Py_None);
}
return ret;
}