mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
gst/gstpad.override: Release the GIL lock while executing queries in GStreamer.
Original commit message from CVS: * gst/gstpad.override: Release the GIL lock while executing queries in GStreamer.
This commit is contained in:
parent
d3a4c03c2b
commit
483a107dbf
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-04-11 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* gst/gstpad.override:
|
||||||
|
Release the GIL lock while executing queries in GStreamer.
|
||||||
|
|
||||||
2007-04-10 Jan Schmidt <thaytan@mad.scientist.com>
|
2007-04-10 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* examples/pyidentity.py:
|
* examples/pyidentity.py:
|
||||||
|
|
|
@ -729,7 +729,9 @@ _wrap_gst_pad_query(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:GstPad.query", kwlist, &PyGstQuery_Type, &query))
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:GstPad.query", kwlist, &PyGstQuery_Type, &query))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
pyg_begin_allow_threads;
|
||||||
ret = gst_pad_query(GST_PAD(self->obj), GST_QUERY (query->obj));
|
ret = gst_pad_query(GST_PAD(self->obj), GST_QUERY (query->obj));
|
||||||
|
pyg_end_allow_threads;
|
||||||
|
|
||||||
return PyBool_FromLong(ret);
|
return PyBool_FromLong(ret);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue