mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
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.
This commit is contained in:
parent
e3a125a49f
commit
8b02893346
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue