Add stop method to satisfy clear when playing test

This commit is contained in:
Thomas Adamcik 2010-02-07 19:37:45 +01:00
parent 9993b64983
commit 1bc2a28ec4
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class BaseCurrentPlaylistController(object):
raise NotImplementedError
def clear(self):
self.backend.playback.stop()
self.playlist = Playlist()
class BasePlaybackController(object):
@ -39,5 +40,8 @@ class BasePlaybackController(object):
def play(self, id=None, position=None):
raise NotImplementedError
def stop(self):
raise NotImplementedError
def next(self):
raise NotImplementedError

View File

@ -67,6 +67,9 @@ class GStreamerPlaybackController(BasePlaybackController):
return True
def stop(self):
self.bin.set_state(gst.STATE_NULL)
def next(self):
playlist = self.backend.current_playlist.playlist