From 47637e3ea2e2dd94b1f000577a8ce88df0730f4d Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 19 Jun 2021 19:16:56 +0200 Subject: [PATCH] server: fix error message --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index cae55122..afac7f21 100644 --- a/server.go +++ b/server.go @@ -205,7 +205,7 @@ func (s *Server) Start(address string) error { } 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) @@ -250,7 +250,7 @@ func (s *Server) Start(address string) error { if s.udpRTCPListener != nil { 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