From da958ac00b28da2fcca77fa303dd2e6254d684cc Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Fri, 27 Aug 2010 01:16:43 +0200 Subject: [PATCH] plugin: remove an unneeded PyType_Check call. Makes it work on centos for real. --- plugin/gstpythonplugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c index 64524795b8..a483d35995 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 ();