plugin: Always initialize GIL state

gcc warns about possibly unintialized use of it

(even if it can't actually happen)
This commit is contained in:
Thibault Saunier 2017-07-29 23:05:22 -04:00
parent fcbca025e3
commit 425990047b

View file

@ -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;