From 425990047b519751cef24a4ba5e4d032108165ab Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 29 Jul 2017 23:05:22 -0400 Subject: [PATCH] plugin: Always initialize GIL state gcc warns about possibly unintialized use of it (even if it can't actually happen) --- plugin/gstpythonplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4