]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
fix
authorqydysky <32743305+qydysky@users.noreply.github.com>
Tue, 17 Jan 2023 14:17:24 +0000 (22:17 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Tue, 17 Jan 2023 14:17:24 +0000 (22:17 +0800)
Reply/stream.go

index 824e71f0436b986ff0cffb6768f52fec15dce242..835469ce26740954ef089e1c3114e9c2ce9675e5 100644 (file)
@@ -997,7 +997,8 @@ func (t *M4SStream) saveStreamM4s() (e error) {
                                t.last_m4s = &m4s_link_item{}
                        }
                        for i := len(m4s_links) - 1; i > 0; i-- {
-                               if !m4s_links[i].isInit() {
+                               // fmt.Println("set last m4s", m4s_links[i].Base)
+                               if !m4s_links[i].isInit() && len(m4s_links[i].Base) > 0 {
                                        m4s_links[i].copyTo(t.last_m4s)
                                        break
                                }