* morituri/common/task.py:

Show us when we stop twice.
	* morituri/common/gstreamer.py:
	  Stop on Exceptions.
This commit is contained in:
Thomas Vander Stichele
2011-05-24 15:16:39 +00:00
parent 234ac4c644
commit 4c81edf912
3 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:
Show us when we stop twice.
* morituri/common/gstreamer.py:
Stop on Exceptions.
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/common.py:

View File

@@ -97,6 +97,7 @@ class GstPipelineTask(task.Task):
def playLater():
if self.exception:
self.debug('playLater: exception was raised, not playing')
self.stop()
return False
self.debug('setting pipeline to PLAYING')

View File

@@ -98,6 +98,9 @@ class Task(object, log.Loggable):
"""
self.debug('stopping')
self.running = False
if not self.runner:
print 'ERROR: stopping task which is already stopped'
import traceback; traceback.print_stack()
self.runner = None
self._notifyListeners('stopped')