diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2017-07-29 23:05:22 -0400 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2017-07-29 23:05:24 -0400 |
commit | 425990047b519751cef24a4ba5e4d032108165ab (patch) | |
tree | ff00759882c115c9a80d5908575416ae44c71308 | |
parent | fcbca025e30b76b74af3ed1d7c16915c1560c0d8 (diff) |
plugin: Always initialize GIL state
gcc warns about possibly unintialized use of it
(even if it can't actually happen)
-rw-r--r-- | plugin/gstpythonplugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c index 99e6d82..d695a45 100644 --- a/plugin/gstpythonplugin.c +++ b/plugin/gstpythonplugin.c @@ -208,7 +208,7 @@ gst_python_plugin_load (GstPlugin * plugin) static gboolean plugin_init (GstPlugin * plugin) { - PyGILState_STATE state; + PyGILState_STATE state = 0; PyObject *gi, *require_version, *args, *gst, *dict, *pyplugin; gboolean we_initialized = FALSE; GModule *libpython; |