mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
server: fix error message
This commit is contained in:
@@ -205,7 +205,7 @@ func (s *Server) Start(address string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if rtcpPort != (rtpPort + 1) {
|
if rtcpPort != (rtpPort + 1) {
|
||||||
return fmt.Errorf("RTCP and RTP ports must be consecutive")
|
return fmt.Errorf("RTP and RTCP ports must be consecutive")
|
||||||
}
|
}
|
||||||
|
|
||||||
s.udpRTPListener, err = newServerUDPListener(s, false, s.UDPRTPAddress, StreamTypeRTP)
|
s.udpRTPListener, err = newServerUDPListener(s, false, s.UDPRTPAddress, StreamTypeRTP)
|
||||||
@@ -250,7 +250,7 @@ func (s *Server) Start(address string) error {
|
|||||||
if s.udpRTCPListener != nil {
|
if s.udpRTCPListener != nil {
|
||||||
s.udpRTCPListener.close()
|
s.udpRTCPListener.close()
|
||||||
}
|
}
|
||||||
return fmt.Errorf("RTCP and RTP ports must be consecutive")
|
return fmt.Errorf("RTP and RTCP ports must be consecutive")
|
||||||
}
|
}
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
Reference in New Issue
Block a user