diff --git a/mopidy/backends/gstreamer.py b/mopidy/backends/gstreamer.py index 266bb8a6..92670d91 100644 --- a/mopidy/backends/gstreamer.py +++ b/mopidy/backends/gstreamer.py @@ -71,10 +71,11 @@ class GStreamerPlaybackController(BasePlaybackController): if track: self.current_track = track - elif not self.current_track and not playlist.tracks: + elif not self.current_track: + self.current_track = self.next_track + + if not self.current_track: return False - elif playlist.tracks: - self.current_track = playlist.tracks[0] self._bin.set_state(gst.STATE_READY) self._bin.set_property('uri', self.current_track.uri)