diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-05-22 12:05:28 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-05-22 12:06:49 +0200 |
commit | 3ae49e9d619c57e5fa50068a6fc98323a439479c (patch) | |
tree | f200fd7e8750d267efea69c8beaf3895d6717198 | |
parent | 695e1f76b4be8f0fdc360b34b6a6b4599f47e833 (diff) |
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.
-rw-r--r-- | plugin/gstpythonplugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c index 08ba11a..8c7eb1a 100644 --- a/plugin/gstpythonplugin.c +++ b/plugin/gstpythonplugin.c @@ -352,7 +352,7 @@ plugin_init (GstPlugin * plugin) we_initialized = TRUE; } else { GST_LOG ("python was already initialized"); - state = pyg_gil_state_ensure (); + state = PyGILState_Ensure (); } 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 */ PyEval_SaveThread (); } else - pyg_gil_state_release (state); + PyGILState_Release (state); return TRUE; } |