update fyne to 2.5.1

This commit is contained in:
aynakeya
2024-08-26 17:15:31 -07:00
parent e7f7ddfe4a
commit 7960299f09
4 changed files with 6 additions and 10 deletions

View File

@@ -77,10 +77,6 @@ func StopPlayer() {
// Stop player async but wait for at most 1 second
go func() {
//err := libmpv.SetOptionString("vo", "no")
//if err != nil {
// log.Error("fail to reseting window handle to 0")
//}
// todo: when call TerminateDestroy after wid has been set, a c code panic will arise.
// maybe because the window mpv attach to has been closed. so handle was closed twice
// for now. just don't destroy it. because it also might fix configuration
@@ -92,8 +88,8 @@ func StopPlayer() {
select {
case <-done:
log.Info("mpv player stopped")
case <-time.After(1 * time.Second):
log.Error("mpv player stop timed out")
case <-time.After(2 * time.Second):
log.Error("mpv player stop timed out (2s) ")
}
}