aboutsummaryrefslogtreecommitdiff
path: root/player.go
diff options
context:
space:
mode:
Diffstat (limited to 'player.go')
-rw-r--r--player.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.go b/player.go
index db1936a..db4457c 100644
--- a/player.go
+++ b/player.go
@@ -68,12 +68,12 @@ func (player *Player) runMpv() {
llog.Fatal("Mpv failed with: %s", err.Error())
}
- wrms := player.wrms
+ currentSong := wrms.CurrentSong.Load()
llog.Info("mpv finished. Resetting mpv, and calling next")
player.mpv = nil
- player.Backends[wrms.CurrentSong.Source].OnSongFinished(&wrms.CurrentSong)
+ player.Backends[currentSong.Source].OnSongFinished(currentSong)
wrms.Next()
}