mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
fcbca025e3
commit
425990047b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue