gst/gstpad.override (_wrap_gst_pad_set_blocked_async): PyObject_IsTrue, not PyBool_Check. Grr.

Original commit message from CVS:
2006-04-05  Andy Wingo  <wingo@pobox.com>

* gst/gstpad.override (_wrap_gst_pad_set_blocked_async):
PyObject_IsTrue, not PyBool_Check. Grr.
This commit is contained in:
Andy Wingo 2006-04-05 08:37:32 +00:00
parent 3136c7ef6d
commit fda4bddb99
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-04-05 Andy Wingo <wingo@pobox.com>
* gst/gstpad.override (_wrap_gst_pad_set_blocked_async):
PyObject_IsTrue, not PyBool_Check. Grr.
2006-04-04 Edward Hervey <edward@fluendo.com>
* gst/gst.defs:

2
common

@ -1 +1 @@
Subproject commit 6f7101e2227975fa8a134358362dd4b55e326b4c
Subproject commit cbedff4d5f090d43fdeaa189748a6651f2c6a07f

View file

@ -1017,7 +1017,7 @@ _wrap_gst_pad_set_blocked_async (PyGObject *self, PyObject *args)
return NULL;
}
pblocked = PySequence_GetItem(args, 0);
blocked = PyBool_Check(pblocked) ? TRUE : FALSE;
blocked = PyObject_IsTrue(pblocked);
callback = PySequence_GetItem(args, 1);
if (!PyCallable_Check(callback)) {