Skip to content
Snippets Groups Projects
Commit 42599004 authored by Thibault Saunier's avatar Thibault Saunier
Browse files

plugin: Always initialize GIL state

gcc warns about possibly unintialized use of it

(even if it can't actually happen)
parent fcbca025
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ gst_python_plugin_load (GstPlugin * plugin) ...@@ -208,7 +208,7 @@ gst_python_plugin_load (GstPlugin * plugin)
static gboolean static gboolean
plugin_init (GstPlugin * plugin) plugin_init (GstPlugin * plugin)
{ {
PyGILState_STATE state; PyGILState_STATE state = 0;
PyObject *gi, *require_version, *args, *gst, *dict, *pyplugin; PyObject *gi, *require_version, *args, *gst, *dict, *pyplugin;
gboolean we_initialized = FALSE; gboolean we_initialized = FALSE;
GModule *libpython; GModule *libpython;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment