mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
079d41c4ac
commit
a8e88c224d
3 changed files with 27 additions and 1 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit fa2e4df50fd965b1dbd3b35b87d914ff87362815
|
||||
Subproject commit 1ca7d9a20180cab830f4383cde5ba932338e50b1
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue