From: qydysky Date: Sun, 13 Jun 2021 10:07:17 +0000 (+0800) Subject: flv mp4流服务中断连接 X-Git-Tag: v0.5.10~41^2~101 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=91075b00f9d1bae9fd736797beae248853618387;p=bili_danmu%2F.git flv mp4流服务中断连接 --- diff --git a/Reply/F.go b/Reply/F.go index 5fa7aa6..22cb913 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -905,9 +905,6 @@ func Savestreamf(){ reqs.Push_tag(`close`,nil) out.Close() - l.L(`I: `,"结束") - Ass_f("", time.Now())//ass - savestream.front = []byte{}//flv头及首tag置空 p.FileMove(savestream.path+".flv.dtmp", savestream.path+".flv") } else { savestream.path += "/" @@ -1352,12 +1349,13 @@ func Savestreamf(){ } hls_msg.Push_tag(`close`, nil) - savestream.front = []byte{}//头置空 - l.L(`I: `,"结束") - Ass_f("", time.Now())//ass } //set ro `` savestream.path = `` + savestream.front = []byte{}//flv头及首tag置空 + savestream.stream.Push_tag("close", nil) + Ass_f("", time.Now())//ass + l.L(`I: `,"结束") if !savestream.cancel.Islive() { // l.L(`I: `,"退出")