From a4da3dab159991f8c7491cf2174a6874ff3f31b8 Mon Sep 17 00:00:00 2001 From: Saxon Date: Tue, 30 Apr 2019 21:33:35 +0930 Subject: [PATCH] protocol/rtsp/client.go: using u instead of url from url.Parse in Client.Setup() --- protocol/rtsp/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/rtsp/client.go b/protocol/rtsp/client.go index e581eecf..b90dbc8a 100644 --- a/protocol/rtsp/client.go +++ b/protocol/rtsp/client.go @@ -81,12 +81,12 @@ func (c *Client) Options() (*Response, error) { // Setup forms and sends an RTSP request of method SETUP to the RTSP server. func (c *Client) Setup(track, transport string) (*Response, error) { - url, err := url.Parse(c.addr + "/" + track) + u, err := url.Parse(c.addr + "/" + track) if err != nil { return nil, err } - req, err := NewRequest("SETUP", c.nextCSeq(), url, nil) + req, err := NewRequest("SETUP", c.nextCSeq(), u, nil) if err != nil { return nil, err }