update slider once per second always

This commit is contained in:
Drew Weymouth
2022-12-23 14:55:47 -08:00
parent af24ec56a8
commit 024557d49e
4 changed files with 13 additions and 25 deletions
+1 -1
View File
@@ -375,7 +375,7 @@ func (p *Player) eventHandler(ctx context.Context) {
case <-ctx.Done():
return
default:
e := p.mpv.WaitEvent(0.2 /*timeout seconds*/)
e := p.mpv.WaitEvent(1 /*timeout seconds*/)
if e.Event_Id != mpv.EVENT_NONE {
//log.Printf("mpv event: %+v\n", e)
}