gst/gstpad.override: Release the GIL lock while executing queries in GStreamer.
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 11 Apr 2007 09:22:15 +0000 (09:22 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 11 Apr 2007 09:22:15 +0000 (09:22 +0000)
Original commit message from CVS:
* gst/gstpad.override:
Release the GIL lock while executing queries in GStreamer.

ChangeLog
gst/gstpad.override

index 31fb2e1..d0c72a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 07c24e6..e2ec9a4 100644 (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);   
 }