summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2010-08-27 01:16:43 +0200
committerAlessandro Decina <alessandro.d@gmail.com>2010-08-27 01:16:43 +0200
commitda958ac00b28da2fcca77fa303dd2e6254d684cc (patch)
tree9ed1231a1609f2148fa1c0d44e3e603928e9ee58
parent05a4a8e60bf5442bfa369c3df567588734b7b8b2 (diff)
plugin: remove an unneeded PyType_Check call. Makes it work on centos for real.
-rw-r--r--plugin/gstpythonplugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c
index 6452479..a483d35 100644
--- a/plugin/gstpythonplugin.c
+++ b/plugin/gstpythonplugin.c
@@ -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 ();