mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
Add some hackery hackery
Original commit message from CVS: Add some hackery hackery
This commit is contained in:
parent
a3d89adf3c
commit
a3ff243a42
1 changed files with 12 additions and 1 deletions
|
@ -94,10 +94,21 @@ _wrap_gst_bin_iterate(PyGObject *self)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
/* XXX: Find out which one is the most correct */
|
||||||
|
#if 1
|
||||||
pyg_begin_allow_threads;
|
pyg_begin_allow_threads;
|
||||||
|
|
||||||
ret = gst_bin_iterate(GST_BIN(self->obj));
|
ret = gst_bin_iterate(GST_BIN(self->obj));
|
||||||
|
|
||||||
pyg_end_allow_threads;
|
pyg_end_allow_threads;
|
||||||
|
|
||||||
|
#else
|
||||||
|
PyGILState_STATE state;
|
||||||
|
|
||||||
|
state = pyg_gil_state_ensure();
|
||||||
|
ret = gst_bin_iterate(GST_BIN(self->obj));
|
||||||
|
pyg_gil_state_release(state);
|
||||||
|
#endif
|
||||||
return PyInt_FromLong(ret);
|
return PyInt_FromLong(ret);
|
||||||
}
|
}
|
||||||
%%
|
%%
|
||||||
|
|
Loading…
Reference in a new issue