summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-08-13 11:00:49 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-08-13 11:00:49 +0200
commitf46cb7c33500e040f4241858c7778d528a84fbf4 (patch)
tree8262836b16b8f589b6502839e24cf15ed9b35636
parentaa92fc1bd75179b871e3667247ded02bddef6762 (diff)
gstpad: Don't forget to acquire/release the GIL in pac_block_destroy_data
-rw-r--r--gst/gstpad.override9
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