projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3a125a
)
plugin: check for _Py_NoneStruct instead of Py_None.
author
Alessandro Decina
<alessandro.d@gmail.com>
Wed, 25 Aug 2010 09:08:15 +0000
(11:08 +0200)
committer
Alessandro Decina
<alessandro.d@gmail.com>
Wed, 25 Aug 2010 09:08:15 +0000
(11:08 +0200)
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.
plugin/gstpythonplugin.c
patch
|
blob
|
history
diff --git
a/plugin/gstpythonplugin.c
b/plugin/gstpythonplugin.c
index
8c7eb1a
..
f8b0d0d
100644
(file)
--- 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");