From 1160985b2a0560b09b1cbd6134a06b49665be408 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 10 Apr 2019 14:01:13 +0930 Subject: [PATCH] protocol/rtsp: fixing url usage --- protocol/rtsp/rtsp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/rtsp/rtsp.go b/protocol/rtsp/rtsp.go index 2e8427d7..8aae8a9c 100644 --- a/protocol/rtsp/rtsp.go +++ b/protocol/rtsp/rtsp.go @@ -236,7 +236,7 @@ func (s *Session) Options(urlStr string) (*Response, error) { } func (s *Session) Setup(urlStr, transport string) (*Response, error) { - req, err := NewRequest(SETUP, urlStr+"/track1", s.nextCSeq(), nil) + req, err := NewRequest(SETUP, urlStr, s.nextCSeq(), nil) if err != nil { panic(err) } @@ -260,7 +260,7 @@ func (s *Session) Setup(urlStr, transport string) (*Response, error) { } func (s *Session) Play(urlStr, sessionId string) (*Response, error) { - req, err := NewRequest(PLAY, urlStr, s.nextCSeq(), nil) + req, err := NewRequest(PLAY, urlStr+"/", s.nextCSeq(), nil) if err != nil { panic(err) }