override gst_bin_iterate() to unblock threads since this call can cause exacution...
authorDavid I. Lehn <dlehn@users.sourceforge.net>
Thu, 7 Nov 2002 07:09:19 +0000 (07:09 +0000)
committerDavid I. Lehn <dlehn@users.sourceforge.net>
Thu, 7 Nov 2002 07:09:19 +0000 (07:09 +0000)
Original commit message from CVS:
override gst_bin_iterate() to unblock threads since this call can cause
exacution to re-enter the interpreter.

common
gst/gstreamer.override
gstreamer/gstreamer.override

diff --git a/common b/common
index fa2e4df..1ca7d9a 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit fa2e4df50fd965b1dbd3b35b87d914ff87362815
+Subproject commit 1ca7d9a20180cab830f4383cde5ba932338e50b1
index a0bf1bf..ade8127 100644 (file)
@@ -216,3 +216,16 @@ _wrap_gst_buffer_set_data(PyObject *self, PyObject *args, PyObject *kwargs)
        Py_INCREF(Py_None);
        return Py_None;
 }
+%%
+override gst_bin_iterate
+
+static PyObject *
+_wrap_gst_bin_iterate(PyGObject *self)
+{
+    int ret;
+
+    pyg_unblock_threads();
+    ret = gst_bin_iterate(GST_BIN(self->obj));
+    pyg_block_threads();
+    return PyInt_FromLong(ret);
+}
index a0bf1bf..ade8127 100644 (file)
@@ -216,3 +216,16 @@ _wrap_gst_buffer_set_data(PyObject *self, PyObject *args, PyObject *kwargs)
        Py_INCREF(Py_None);
        return Py_None;
 }
+%%
+override gst_bin_iterate
+
+static PyObject *
+_wrap_gst_bin_iterate(PyGObject *self)
+{
+    int ret;
+
+    pyg_unblock_threads();
+    ret = gst_bin_iterate(GST_BIN(self->obj));
+    pyg_block_threads();
+    return PyInt_FromLong(ret);
+}