From f877cce1257448f2dd0188d7058990ce3e5eda54 Mon Sep 17 00:00:00 2001 From: deepch Date: Thu, 30 Sep 2021 19:59:31 +0300 Subject: [PATCH] fix proxy vlc --- format/rtspv2/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/rtspv2/proxy.go b/format/rtspv2/proxy.go index 26fe5d3..c5a5f4e 100644 --- a/format/rtspv2/proxy.go +++ b/format/rtspv2/proxy.go @@ -40,6 +40,7 @@ func NewProxyConn(netconn net.Conn) *ProxyConn { conn.writebuf = make([]byte, 4096) conn.readbuf = make([]byte, 4096) conn.session = uuid.New().String() + conn.cseq = 1 return conn } @@ -144,7 +145,6 @@ func (self *ProxyConn) prepare() error { if err != nil { return err } - allStringsSlice := strings.Split(string(self.readbuf[:n]), "\r\n") if len(allStringsSlice) == 0 { return errors.New("no cmd")