gst/gstelement.override (_wrap_gst_element_get_state): Drop the python lock while in get_state.

Original commit message from CVS:
2005-10-07  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.override (_wrap_gst_element_get_state): Drop the
python lock while in get_state.

* gst/__init__.py: Check the right module (i.e., the same check as
pygtk does).
This commit is contained in:
Andy Wingo 2005-10-07 16:48:26 +00:00
parent fd5f5ad8d0
commit e1137284ce
3 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2005-10-07 Andy Wingo <wingo@pobox.com>
* gst/gstelement.override (_wrap_gst_element_get_state): Drop the
python lock while in get_state.
* gst/__init__.py: Check the right module (i.e., the same check as
pygtk does).
2005-10-07 Edward Hervey <edward@fluendo.com>
* gst/pygstiterator.c:
@ -250,6 +258,8 @@
2005-09-29 Andy Wingo <wingo@pobox.com>
* gst/__init__.py: Don't pygtk.require() if pygtk is already loaded.
* examples/pipeline-tester (Window.play):
* examples/vumeter.py (Window.run): Updates for bus API.

View file

@ -32,7 +32,7 @@ import sys
# we always require 2.0 of pygtk; so if pygtk is not imported anywhere
# yet, we import pygtk here and .require
if not sys.modules.has_key('pygtk'):
if 'gobject' not in sys.modules:
import pygtk
pygtk.require('2.0')

View file

@ -118,9 +118,13 @@ _wrap_gst_element_get_state(PyGObject *self, PyObject *args, PyObject *kwargs)
timevalp = &timeval;
}
pyg_begin_allow_threads;
ret = gst_element_get_state(GST_ELEMENT (self->obj), &state, &pending,
timevalp);
pyg_end_allow_threads;
tuple = Py_BuildValue("OOO",
pyg_enum_from_gtype (GST_TYPE_STATE_CHANGE_RETURN, ret),
pyg_enum_from_gtype (GST_TYPE_STATE, state),