gst/gstobject.override: Release the GIL when calling gst_object_get_path_string() since it can cause deadlocks with n...

Original commit message from CVS:
* gst/gstobject.override:
Release the GIL when calling gst_object_get_path_string() since it can
cause deadlocks with new pygobject behaviour.
This commit is contained in:
Edward Hervey 2007-10-13 16:32:52 +00:00
parent 7eebff4489
commit 180a79c36d
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-10-13 Edward Hervey <bilboed@bilboed.com>
* gst/gstobject.override:
Release the GIL when calling gst_object_get_path_string() since it can
cause deadlocks with new pygobject behaviour.
2007-10-11 Edward Hervey <bilboed@bilboed.com>
* gst/gstmodule.c: (init_gst):

View file

@ -63,7 +63,10 @@ _wrap_gst_object_tp_str (PyObject * self)
PyObject *ret;
GstObject *object = GST_OBJECT (pygobject_get (self));
pyg_begin_allow_threads;
path = gst_object_get_path_string (object);
pyg_end_allow_threads;
repr = g_strdup_printf ("%s (%s)", path, self->ob_type->tp_name);
ret = PyString_FromString (repr);
g_free (repr);