switch mpv lib to remove deprecated mpv apis

This commit is contained in:
Drew Weymouth
2022-12-17 20:43:27 -08:00
parent 78050f8b43
commit f25e201440
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/yourok/go-mpv/mpv"
"github.com/wildeyedskies/go-mpv/mpv"
)
// Error returned by many Player functions if called before the player has not been initialized.
@@ -332,7 +332,7 @@ func (p *Player) Destroy() {
}
if p.mpv != nil {
p.mpv.Command([]string{"stop"})
p.mpv.DetachDestroy()
p.mpv.TerminateDestroy()
p.mpv = nil
}
}