From 3bcc68875853119ca2b7abcaa8180f698410126b Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Thu, 13 Aug 2009 11:45:51 +0200 Subject: [PATCH] Release the GIL around gst_pad_link. --- gst/gstpad.override | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/gstpad.override b/gst/gstpad.override index e1a779ab2f..ccde73cd16 100644 --- a/gst/gstpad.override +++ b/gst/gstpad.override @@ -736,7 +736,9 @@ _wrap_gst_pad_link(PyGObject *self, PyObject *args, PyObject *kwargs) if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:GstPad.link", kwlist, &PyGstPad_Type, &sinkpad)) return NULL; + pyg_begin_allow_threads; ret = gst_pad_link(GST_PAD(self->obj), GST_PAD(sinkpad->obj)); + pyg_end_allow_threads; if (ret) { PyObject *exc_val = pyg_enum_from_gtype(GST_TYPE_PAD_LINK_RETURN, ret); PyErr_SetObject(PyGstExc_LinkError, exc_val);