summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2010-08-26 23:34:04 +0200
committerAlessandro Decina <alessandro.d@gmail.com>2010-08-26 23:34:04 +0200
commit05a4a8e60bf5442bfa369c3df567588734b7b8b2 (patch)
tree1eda96d4519396af80103333d30f6bf6cfacbe0e
parente564f783caa1c845fe1946514554bbac006d7aac (diff)
plugin: declare _PyGstElement_Type as void*.
Declaring _PyGstElement_Type as PyTypeObject makes the loader on centos fail because of a missing symbol.
-rw-r--r--plugin/gstpythonplugin.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c
index 2212683..6452479 100644
--- a/plugin/gstpythonplugin.c
+++ b/plugin/gstpythonplugin.c
@@ -27,9 +27,7 @@
#include <gst/gst.h>
#include <Python.h>
-PyTypeObject *_PyGstElement_Type;
-#define PyGstElement_Type (*_PyGstElement_Type)
-
+void *_PyGstElement_Type;
GST_DEBUG_CATEGORY_STATIC (pyplugindebug);
#define GST_CAT_DEFAULT pyplugindebug
@@ -134,7 +132,7 @@ gst_python_plugin_load_file (GstPlugin * plugin, const char *name)
}
if (!PyType_Check (class)
- || !(PyObject_IsSubclass (class, (PyObject *) & PyGstElement_Type))) {
+ || !(PyObject_IsSubclass (class, (PyObject *) _PyGstElement_Type))) {
GST_WARNING ("the class provided isn't a subclass of gst.Element");
PyErr_Print ();
PyErr_Clear ();
@@ -307,7 +305,7 @@ pygst_require (gchar * version)
g_unsetenv ("GST_REGISTRY_UPDATE");
#define IMPORT(x, y) \
- _PyGst##x##_Type = (PyTypeObject *)PyObject_GetAttrString(gst, y); \
+ _PyGst##x##_Type = (void *)PyObject_GetAttrString(gst, y); \
if (_PyGst##x##_Type == NULL) { \
PyErr_Print(); \
return NULL; \