alexjaw/fix/1512-inconsistent-playlist-state-with-repeat-and-consume

This commit is contained in:
Alexander Jaworowski 2016-08-21 21:59:10 +02:00
parent bee9bd3d23
commit 95deb77939
2 changed files with 3 additions and 2 deletions

View File

@ -326,7 +326,8 @@ class TracklistController(object):
if self.get_repeat():
# Fix for bug 1512
# Return None if consume mode and there is only one track (left) in the list
# Return None if consume mode and there is only one track (left)
# in the list
if self.get_consume() and len(self._tl_tracks) == 1:
return None
else:

View File

@ -442,7 +442,7 @@ class TestConsumeHandling(BaseTest):
self.core.playback.next()
self.replay_events()
# Try repeat, player state should remain as stopped (all tracks consumed)
# Try repeat, player state remain stopped (all tracks consumed)
self.core.playback.next()
self.replay_events()