Prevent pop from empty list

This commit is contained in:
Thomas Adamcik 2010-02-22 02:29:56 +01:00
parent f9f3ec9c4a
commit 92598a963e

View File

@ -77,7 +77,7 @@ class GStreamerPlaybackController(BasePlaybackController):
if not self.current_track:
return
if self.random:
if self.random and self._shuffled:
self._shuffled.pop(0)
self._bin.set_state(gst.STATE_READY)