mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
python: Check return value of g_module_symbol()
CID 1320702
This commit is contained in:
parent
b0e9b79ca8
commit
f9eb5b7877
1 changed files with 2 additions and 3 deletions
|
@ -229,9 +229,8 @@ plugin_init (GstPlugin * plugin)
|
|||
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_NoneStruct",
|
||||
&has_python);
|
||||
if (has_python) {
|
||||
if (g_module_symbol (g_module_open (NULL, G_MODULE_BIND_LOCAL),
|
||||
"_Py_NoneStruct", &has_python) && has_python) {
|
||||
GST_LOG ("libpython is already loaded");
|
||||
} else {
|
||||
GST_LOG ("loading libpython");
|
||||
|
|
Loading…
Reference in a new issue