[gst-cvs] gst-python: gstpad: Don't forget to acquire/ release the GIL in pac_block_destroy_data
Edward Hervey
bilboed at kemper.freedesktop.org
Thu Aug 13 02:01:20 PDT 2009
Module: gst-python
Branch: master
Commit: f46cb7c33500e040f4241858c7778d528a84fbf4
URL: http://cgit.freedesktop.org/gstreamer/gst-python/commit/?id=f46cb7c33500e040f4241858c7778d528a84fbf4
Author: Edward Hervey <bilboed at bilboed.com>
Date: Thu Aug 13 11:00:49 2009 +0200
gstpad: Don't forget to acquire/release the GIL in pac_block_destroy_data
---
gst/gstpad.override | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gst/gstpad.override b/gst/gstpad.override
index 2e32f60..e1a779a 100644
--- a/gst/gstpad.override
+++ b/gst/gstpad.override
@@ -1351,9 +1351,14 @@ override gst_pad_set_blocked_async args
static void
pad_block_destroy_data (gpointer data)
{
- PyObject *py_data = (PyObject *) data;
+ PyGILState_STATE state;
+ PyObject *py_data = (PyObject *) data;
+
+ state = pyg_gil_state_ensure();
+
+ Py_DECREF (py_data);
- Py_DECREF (py_data);
+ pyg_gil_state_release(state);
}
#endif
More information about the Gstreamer-commits
mailing list