mirror of https://bitbucket.org/ausocean/av.git
protocol/rtsp: Client.Do r parameter now req.
This commit is contained in:
parent
07e7235dc4
commit
01a22ffc38
|
@ -113,8 +113,8 @@ func (c *Client) Play() (*Response, error) {
|
||||||
|
|
||||||
// Do sends the given RTSP request r and reads any responses, return the response
|
// Do sends the given RTSP request r and reads any responses, return the response
|
||||||
// and any errors.
|
// and any errors.
|
||||||
func (c *Client) Do(r *Request) (*Response, error) {
|
func (c *Client) Do(req *Request) (*Response, error) {
|
||||||
err := r.Write(c.conn)
|
err := req.Write(c.conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue