summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2010-08-25 11:08:15 +0200
committerAlessandro Decina <alessandro.d@gmail.com>2010-08-25 11:08:15 +0200
commit8b028933462796905a59f3a98593b5975bb77f6c (patch)
tree36b8b15bf28f7d8a172087a9daa5764f47e9a7a5 /plugin
parente3a125a49f5cedf9eccf85d1369c35316f6f7b6c (diff)
plugin: check for _Py_NoneStruct instead of Py_None.
When checking if CPython is already loaded, don't check for Py_None which is a macro but use _Py_NoneStruct which is a real symbol.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/gstpythonplugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c
index 8c7eb1a..f8b0d0d 100644
--- a/plugin/gstpythonplugin.c
+++ b/plugin/gstpythonplugin.c
@@ -329,7 +329,7 @@ plugin_init (GstPlugin * plugin)
NULL, NULL, GST_PLUGIN_DEPENDENCY_FLAG_NONE);
GST_LOG ("Checking to see if libpython is already loaded");
- g_module_symbol (g_module_open (NULL, G_MODULE_BIND_LOCAL), "Py_None",
+ g_module_symbol (g_module_open (NULL, G_MODULE_BIND_LOCAL), "_Py_NoneStruct",
&has_python);
if (has_python) {
GST_LOG ("libpython is already loaded");