+2007-04-19 Edward Hervey <edward@fluendo.com>
+
+ * gst/gstbin.override:
+ Release the GIL in GstBin overrides.
+
2007-04-13 Jan Schmidt <thaytan@mad.scientist.com>
* gst/gstelement.override:
}
for (i = 0; i < len; i++) {
+ gboolean rest;
+
element = (PyGObject*)PyTuple_GetItem(args, i);
- if (!gst_bin_add(GST_BIN(self->obj), GST_ELEMENT(element->obj))) {
+ pyg_begin_allow_threads;
+ rest = gst_bin_add(GST_BIN(self->obj), GST_ELEMENT(element->obj));
+ pyg_end_allow_threads;
+ if (!rest) {
PyErr_Format(PyGstExc_AddError, "Could not add element '%s'", GST_OBJECT_NAME(element->obj));
return NULL;
}
}
for (i = 0; i < len; i++) {
+ gboolean rest;
element = (PyGObject*)PyTuple_GetItem(args, i);
- if (!gst_bin_remove(GST_BIN(self->obj), GST_ELEMENT(element->obj))) {
+ pyg_begin_allow_threads;
+ rest = gst_bin_remove(GST_BIN(self->obj), GST_ELEMENT(element->obj));
+ pyg_end_allow_threads;
+ if (!rest) {
PyErr_Format(PyGstExc_RemoveError, "Could not remove element '%s'", GST_OBJECT_NAME(element->obj));
return NULL;
}