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:
b0e9b79
)
python: Check return value of g_module_symbol()
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 14 Dec 2015 12:03:24 +0000
(13:03 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 14 Dec 2015 12:03:24 +0000
(13:03 +0100)
CID 1320702
plugin/gstpythonplugin.c
patch
|
blob
|
history
diff --git
a/plugin/gstpythonplugin.c
b/plugin/gstpythonplugin.c
index
af1f781
..
eb40388
100644
(file)
--- a/
plugin/gstpythonplugin.c
+++ b/
plugin/gstpythonplugin.c
@@
-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");