From 01a22ffc388a14fb92f421a0277b0228073e40bf Mon Sep 17 00:00:00 2001 From: Saxon Date: Sun, 28 Apr 2019 00:54:44 +0930 Subject: [PATCH] protocol/rtsp: Client.Do r parameter now req. --- 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 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 }