From d8694d5bdcd65a421bfc9acdea97fabeff5b1597 Mon Sep 17 00:00:00 2001 From: tramhao Date: Thu, 25 Feb 2021 23:18:01 +0800 Subject: [PATCH] Fix a bug p.subtitle is not closed during initialization. This is lead to a small bug: when a song has subtitle, and 2nd song doesn't have, 3rd song will show the subtitle of 1st song. --- playingbar.go | 1 + 1 file changed, 1 insertion(+) diff --git a/playingbar.go b/playingbar.go index 4a7cd08..ec4704e 100644 --- a/playingbar.go +++ b/playingbar.go @@ -161,6 +161,7 @@ func (p *PlayingBar) newProgress(currentSong *AudioFile, full int) { p.setSongTitle(currentSong.name) p.hasTag = false p.subtitles = nil + p.subtitle = nil p.tag = nil var tag *id3v2.Tag