From: Thibault Saunier Date: Sun, 30 Jul 2017 03:05:22 +0000 (-0400) Subject: plugin: Always initialize GIL state X-Git-Tag: 1.19.3~485^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=425990047b519751cef24a4ba5e4d032108165ab;p=platform%2Fupstream%2Fgstreamer.git plugin: Always initialize GIL state gcc warns about possibly unintialized use of it (even if it can't actually happen) --- 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;