Fix BasePlaybackController with respect to test_resume_when_stopped

This commit is contained in:
Thomas Adamcik 2010-04-06 21:36:13 +02:00
parent 4a8a30d3e4
commit e77bfef196

View File

@ -494,6 +494,8 @@ class BasePlaybackController(object):
"""If paused, resume playing the current track."""
if self.state == self.PAUSED and self._resume():
self.state = self.PLAYING
elif self.state == self.STOPPED:
self.play()
def _resume(self):
raise NotImplementedError