mirror of https://bitbucket.org/ausocean/av.git
protocol/rtsp/client.go: using u instead of url from url.Parse in Client.Setup()
This commit is contained in:
parent
8196df52d7
commit
a4da3dab15
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue