gstpad: Don't forget to acquire/release the GIL in pac_block_destroy_data

This commit is contained in:
Edward Hervey 2009-08-13 11:00:49 +02:00
parent aa92fc1bd7
commit f46cb7c335

View file

@ -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