plugin: remove an unneeded PyType_Check call. Makes it work on centos for real.

This commit is contained in:
Alessandro Decina 2010-08-27 01:16:43 +02:00
parent 05a4a8e60b
commit da958ac00b

View file

@ -131,8 +131,7 @@ gst_python_plugin_load_file (GstPlugin * plugin, const char *name)
return FALSE;
}
if (!PyType_Check (class)
|| !(PyObject_IsSubclass (class, (PyObject *) _PyGstElement_Type))) {
if (!(PyObject_IsSubclass (class, (PyObject *) _PyGstElement_Type))) {
GST_WARNING ("the class provided isn't a subclass of gst.Element");
PyErr_Print ();
PyErr_Clear ();