diff --git a/protocol/rtsp/client.go b/protocol/rtsp/client.go index 133adf38..7f6ac45e 100644 --- a/protocol/rtsp/client.go +++ b/protocol/rtsp/client.go @@ -113,8 +113,8 @@ func (c *Client) Play() (*Response, error) { // Do sends the given RTSP request r and reads any responses, return the response // and any errors. -func (c *Client) Do(r *Request) (*Response, error) { - err := r.Write(c.conn) +func (c *Client) Do(req *Request) (*Response, error) { + err := req.Write(c.conn) if err != nil { return nil, err }