aboutsummaryrefslogtreecommitdiff
path: root/wrms.go
diff options
context:
space:
mode:
Diffstat (limited to 'wrms.go')
-rw-r--r--wrms.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/wrms.go b/wrms.go
index 1fdb5a0..29110a9 100644
--- a/wrms.go
+++ b/wrms.go
@@ -155,7 +155,7 @@ type Wrms struct {
Songs []Song
queue Playlist
CurrentSong atomic.Pointer[Song]
- Player Player
+ Player *Player
Playing bool
Config Config
eventId atomic.Uint64
@@ -357,7 +357,7 @@ func (wrms *Wrms) PlayPause() {
}
// Wrms has an active mpv process -> continue playing
- if wrms.Player.mpv != nil {
+ if wrms.Player.mpv.Load() != nil {
wrms.Player.Continue()
// Wrms has a current song but no mpv process playing it -> start a new one
} else {