From 91075b00f9d1bae9fd736797beae248853618387 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 13 Jun 2021 18:07:17 +0800 Subject: [PATCH] =?utf8?q?flv=20mp4=E6=B5=81=E6=9C=8D=E5=8A=A1=E4=B8=AD?= =?utf8?q?=E6=96=AD=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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: `,"退出") -- 2.39.2