Skip to content

Commit

Permalink
fix single track push error at tcp transport mode
Browse files Browse the repository at this point in the history
  • Loading branch information
macbookpro committed Feb 2, 2019
1 parent 1abdf45 commit 23b5c74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rtsp/rtsp-session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23b5c74

Please sign in to comment.