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

index 835469ce26740954ef089e1c3114e9c2ce9675e5..d78ecdf635f3d01fd6ae3dff39d8f0083e93eb7a 100644 (file)
@@ -528,7 +528,7 @@ func (t *M4SStream) saveStream() (e error) {
        t.Current_save_path = t.config.save_path + "/" + time.Now().Format("2006_01_02_15_04_05_000") + "_" + strconv.Itoa(t.common.Roomid) + `/`
 
        // 清除初始值
-       t.last_m4s.reset()
+       t.last_m4s = nil
 
        // 显示保存位置
        if rel, err := filepath.Rel(t.config.save_path, t.Current_save_path); err == nil {