* gstreamer.py:

Only set an exception once in bus_error_cb.
	  Was triggered by morituri's checksum test, but only
	  if multiple tests were run - got the same bus error
	  twice.
This commit is contained in:
Thomas Vander Stichele
2012-11-18 13:06:59 +00:00
parent 903fade567
commit cc7d031b5e
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
2012-11-18 Thomas Vander Stichele <thomas at apestaart dot org>
* gstreamer.py:
Only set an exception once in bus_error_cb.
Was triggered by morituri's checksum test, but only
if multiple tests were run - got the same bus error
twice.
2012-07-12 Thomas Vander Stichele <thomas at apestaart dot org>
* task.py:

View File

@@ -209,6 +209,10 @@ class GstPipelineTask(task.Task):
Called synchronously (ie from messaging thread) on error message.
"""
self.debug('bus_error_cb: bus %r, message %r' % (bus, message))
if self.exception:
self.debug('bus_error_cb: already got an exception, ignoring')
return
exc = GstException(*message.parse_error())
self.setAndRaiseException(exc)
self.debug('error, scheduling stop')