From b98cb1cafbe098b8f56e2975b60d086373adbcfc Mon Sep 17 00:00:00 2001 From: qydysky Date: Thu, 30 Mar 2023 04:14:45 +0000 Subject: [PATCH] =?utf8?q?Improve=20=E5=AE=8C=E5=96=84=E5=BD=95=E5=88=B6?= =?utf8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Reply/stream.go b/Reply/stream.go index 3a7ad77..307311b 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -764,6 +764,7 @@ func (t *M4SStream) saveStreamFlv() (e error) { // fmt.Println("write front_buf") out.Write(t.first_buf) t.Stream_msg.PushLock_tag(`data`, t.first_buf) + t.msg.Push_tag(`load`, t) } if len(t.first_buf) != 0 && keyframe.Size() != 0 { t.bootBufPush(keyframe.GetPureBuf()) @@ -977,6 +978,7 @@ func (t *M4SStream) saveStreamM4s() (e error) { out.Write(t.first_buf, true) out.Sync() } + t.msg.Push_tag(`load`, t) } t.putM4s(download_seq[k]) download_seq = append(download_seq[:k], download_seq[k+1:]...) -- 2.39.2