mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PyType_Check (class)
|
if (!(PyObject_IsSubclass (class, (PyObject *) _PyGstElement_Type))) {
|
||||||
|| !(PyObject_IsSubclass (class, (PyObject *) _PyGstElement_Type))) {
|
|
||||||
GST_WARNING ("the class provided isn't a subclass of gst.Element");
|
GST_WARNING ("the class provided isn't a subclass of gst.Element");
|
||||||
PyErr_Print ();
|
PyErr_Print ();
|
||||||
PyErr_Clear ();
|
PyErr_Clear ();
|
||||||
|
|
Loading…
Reference in a new issue