mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
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:
parent
7eebff4489
commit
180a79c36d
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2007-10-11 Edward Hervey <bilboed@bilboed.com>
|
||||||
|
|
||||||
* gst/gstmodule.c: (init_gst):
|
* gst/gstmodule.c: (init_gst):
|
||||||
|
|
|
@ -63,7 +63,10 @@ _wrap_gst_object_tp_str (PyObject * self)
|
||||||
PyObject *ret;
|
PyObject *ret;
|
||||||
GstObject *object = GST_OBJECT (pygobject_get (self));
|
GstObject *object = GST_OBJECT (pygobject_get (self));
|
||||||
|
|
||||||
|
pyg_begin_allow_threads;
|
||||||
path = gst_object_get_path_string (object);
|
path = gst_object_get_path_string (object);
|
||||||
|
pyg_end_allow_threads;
|
||||||
|
|
||||||
repr = g_strdup_printf ("%s (%s)", path, self->ob_type->tp_name);
|
repr = g_strdup_printf ("%s (%s)", path, self->ob_type->tp_name);
|
||||||
ret = PyString_FromString (repr);
|
ret = PyString_FromString (repr);
|
||||||
g_free (repr);
|
g_free (repr);
|
||||||
|
|
Loading…
Reference in a new issue