mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
fix panic when audio file does not have subtitle
This commit is contained in:
parent
3b78b676e6
commit
03c4424f1d
@ -211,6 +211,11 @@ func (p *PlayingBar) stop() {
|
||||
}
|
||||
|
||||
func (p *PlayingBar) switchLyrics() {
|
||||
|
||||
if len(p.subtitles) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
var langIndex int
|
||||
for i := range p.subtitles {
|
||||
if p.subtitles[i].langExt == p.langLyric {
|
||||
|
Loading…
x
Reference in New Issue
Block a user