mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
plugin: remove an unneeded PyType_Check call. Makes it work on centos for real.
This commit is contained in:
parent
05a4a8e60b
commit
da958ac00b
1 changed files with 1 additions and 2 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue