Skip to content

Commit

Permalink
fix vol output
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardobiffi committed Jan 18, 2023
1 parent 0c21dff commit 47211e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/player/mpv.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ func (player *MPV) IncVolume() {
log.Fatal(err)
}

vol, err := player.Connection.Get("volume")
_, err = player.Connection.Get("volume")
if err != nil {
log.Fatal(err)
}

log.Println(vol)
// TODO: Send volume to UI
}
}

Expand All @@ -153,11 +153,11 @@ func (player *MPV) DecVolume() {
log.Fatal(err)
}

vol, err := player.Connection.Get("volume")
_, err = player.Connection.Get("volume")
if err != nil {
log.Fatal(err)
}

log.Println(vol)
// TODO: Send volume to UI
}
}

0 comments on commit 47211e4

Please sign in to comment.