Browse Source

fix single track push error at tcp transport mode

pull/154/head
macbookpro 6 years ago
parent
commit
23b5c74d32
  1. 4
      rtsp/rtsp-session.go

4
rtsp/rtsp-session.go

@ -150,6 +150,10 @@ func NewSession(server *Server, conn net.Conn) *Session {
authorizationEnable: authorizationEnable != 0,
RTPHandles: make([]func(*RTPPack), 0),
StopHandles: make([]func(), 0),
vRTPChannel: -1,
vRTPControlChannel: -1,
aRTPChannel: -1,
aRTPControlChannel: -1,
}
session.logger = log.New(os.Stdout, fmt.Sprintf("[%s]", session.ID), log.LstdFlags|log.Lshortfile)

Loading…
Cancel
Save