mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-03-19 18:39:56 +08:00
update fyne to 2.5.1
This commit is contained in:
BIN
assets/icon2.png
Normal file
BIN
assets/icon2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 350 KiB |
6
go.mod
6
go.mod
@@ -10,7 +10,7 @@ replace (
|
||||
)
|
||||
|
||||
require (
|
||||
fyne.io/fyne/v2 v2.5.0
|
||||
fyne.io/fyne/v2 v2.5.1
|
||||
github.com/AynaLivePlayer/liveroom-sdk v0.1.0
|
||||
github.com/AynaLivePlayer/miaosic v0.1.5
|
||||
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b
|
||||
@@ -52,7 +52,7 @@ require (
|
||||
github.com/fyne-io/glfw-js v0.0.0-20240101223322-6e1efdc71b7a // indirect
|
||||
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect
|
||||
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
|
||||
github.com/go-text/render v0.1.0 // indirect
|
||||
github.com/go-text/render v0.1.1-0.20240418202334-dd62631dae9b // indirect
|
||||
github.com/go-text/typesetting v0.1.0 // indirect
|
||||
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
||||
github.com/google/uuid v1.5.0 // indirect
|
||||
@@ -63,7 +63,7 @@ require (
|
||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
||||
github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/rymdport/portal v0.2.2 // indirect
|
||||
github.com/rymdport/portal v0.2.6 // indirect
|
||||
github.com/sahilm/fuzzy v0.1.0 // indirect
|
||||
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
|
||||
github.com/spf13/cast v1.5.1 // indirect
|
||||
|
||||
@@ -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) ")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user