fix: rtsp session init

This commit is contained in:
langhuihui
2024-11-04 18:21:14 +08:00
parent 65829f00f5
commit 4c7cb6fed7

View File

@@ -139,6 +139,7 @@ func (c *NetConnection) Connect(remoteURL string) (err error) {
c.BufReader = util.NewBufReader(conn)
c.URL = rtspURL
c.UserAgent = "monibuca" + m7s.Version
c.Session = ""
c.auth = util.NewAuth(c.URL.User)
c.SetDescription("remoteAddr", conn.RemoteAddr().String())
c.MemoryAllocator = util.NewScalableMemoryAllocator(1 << 12)