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:
Jan Schmidt 2007-04-11 09:22:15 +00:00
parent d3a4c03c2b
commit 483a107dbf
2 changed files with 7 additions and 0 deletions

View file

@ -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>
* examples/pyidentity.py:

View file

@ -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))
return NULL;
pyg_begin_allow_threads;
ret = gst_pad_query(GST_PAD(self->obj), GST_QUERY (query->obj));
pyg_end_allow_threads;
return PyBool_FromLong(ret);
}