* morituri/common/task.py:
Show us when we stop twice. * morituri/common/gstreamer.py: Stop on Exceptions.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user