From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Tue, 1 Nov 2022 11:00:59 +0000 (+0800) Subject: fix X-Git-Tag: v0.5.11~75 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=09c8075fe16b0910415dfc8a164f03a7b8b86a26;p=bili_danmu%2F.git fix --- diff --git a/Reply/Msg.go b/Reply/Msg.go index 153ce0c..43bf35f 100644 --- a/Reply/Msg.go +++ b/Reply/Msg.go @@ -111,6 +111,7 @@ var Msg_map = map[string]func(replyF, string){ "LITTLE_TIPS": replyF.little_tips, //小提示窗口 "LIKE_INFO_V3_NOTICE": nil, "LIVE_INTERACTIVE_GAME": nil, + "LIVE_MULTI_VIEW_CHANGE": nil, } // 屏蔽不需要的消息 diff --git a/Reply/stream.go b/Reply/stream.go index b43af05..c501bdc 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -417,7 +417,9 @@ func (t *M4SStream) fetchParseM3U8() (m4s_links []*m4s_link_item, m3u8_addon []b return } - e = errors.New("未能找到可用流服务器") + if e != nil { + e = errors.New(e.Error() + " 未能找到可用流服务器") + } return } @@ -750,6 +752,8 @@ func (t *M4SStream) saveStreamM4s() (e error) { fmp4KeyFrames, last_avilable_offset, e := fmp4Decoder.Seach_stream_fmp4(buf) if e != nil { t.log.L(`E: `, e) + //丢弃所有数据 + last_avilable_offset = len(buf) } for _, fmp4KeyFrame := range fmp4KeyFrames {