gstpythonplugin: Don't use pyg_gil_* in pure python. Fixes #583378
At this point, pygobject wasn't loaded yet ... cause pyg_gil_state_ensured to not be initialized to the proper method.
This commit is contained in:
parent
695e1f76b4
commit
3ae49e9d61
@ -352,7 +352,7 @@ plugin_init (GstPlugin * plugin)
|
|||||||
we_initialized = TRUE;
|
we_initialized = TRUE;
|
||||||
} else {
|
} else {
|
||||||
GST_LOG ("python was already initialized");
|
GST_LOG ("python was already initialized");
|
||||||
state = pyg_gil_state_ensure ();
|
state = PyGILState_Ensure ();
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_LOG ("initializing pygobject");
|
GST_LOG ("initializing pygobject");
|
||||||
@ -385,7 +385,7 @@ plugin_init (GstPlugin * plugin)
|
|||||||
/* We need to release the GIL since we're going back to C land */
|
/* We need to release the GIL since we're going back to C land */
|
||||||
PyEval_SaveThread ();
|
PyEval_SaveThread ();
|
||||||
} else
|
} else
|
||||||
pyg_gil_state_release (state);
|
PyGILState_Release (state);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user