Run gofumpt on the project
This commit is contained in:
@@ -109,7 +109,6 @@ func (j *JukeboxPlayer) SetNextTrack(track *mediaprovider.Track) error {
|
||||
}
|
||||
j.queueLength += 1
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
func (j *JukeboxPlayer) SeekSeconds(secs float64) error {
|
||||
|
||||
@@ -3,6 +3,7 @@ package mpv
|
||||
// #include <mpv/client.h>
|
||||
// int mpv_get_peaks(mpv_handle* handle, double* lPeak, double* rPeak, double* lRMS, double* rRMS);
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"github.com/supersonic-app/go-mpv"
|
||||
)
|
||||
|
||||
@@ -492,7 +492,7 @@ func (p *Player) eventHandler(ctx context.Context) {
|
||||
default:
|
||||
e := p.mpv.WaitEvent(1 /*timeout seconds*/)
|
||||
if e.Event_Id != mpv.EVENT_NONE {
|
||||
//log.Printf("mpv event: %+v\n", e)
|
||||
// log.Printf("mpv event: %+v\n", e)
|
||||
}
|
||||
switch e.Event_Id {
|
||||
case mpv.EVENT_PLAYBACK_RESTART:
|
||||
|
||||
Reference in New Issue
Block a user