override gst_bin_iterate() to unblock threads since this call can cause exacution to re-enter the interpreter.

Original commit message from CVS:
override gst_bin_iterate() to unblock threads since this call can cause
exacution to re-enter the interpreter.
This commit is contained in:
David I. Lehn 2002-11-07 07:09:19 +00:00
parent 079d41c4ac
commit a8e88c224d
3 changed files with 27 additions and 1 deletions

2
common

@ -1 +1 @@
Subproject commit fa2e4df50fd965b1dbd3b35b87d914ff87362815
Subproject commit 1ca7d9a20180cab830f4383cde5ba932338e50b1

View file

@ -216,3 +216,16 @@ _wrap_gst_buffer_set_data(PyObject *self, PyObject *args, PyObject *kwargs)
Py_INCREF(Py_None);
return Py_None;
}
%%
override gst_bin_iterate
static PyObject *
_wrap_gst_bin_iterate(PyGObject *self)
{
int ret;
pyg_unblock_threads();
ret = gst_bin_iterate(GST_BIN(self->obj));
pyg_block_threads();
return PyInt_FromLong(ret);
}

View file

@ -216,3 +216,16 @@ _wrap_gst_buffer_set_data(PyObject *self, PyObject *args, PyObject *kwargs)
Py_INCREF(Py_None);
return Py_None;
}
%%
override gst_bin_iterate
static PyObject *
_wrap_gst_bin_iterate(PyGObject *self)
{
int ret;
pyg_unblock_threads();
ret = gst_bin_iterate(GST_BIN(self->obj));
pyg_block_threads();
return PyInt_FromLong(ret);
}