update gortsplib

This commit is contained in:
aler9 2022-02-19 23:06:24 +01:00
parent 507afbf73d
commit 87f24f1704
6 changed files with 9 additions and 14 deletions

View file

@ -244,12 +244,12 @@ func (c *rtspConn) onDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx,
) (*base.Response, *gortsplib.ServerStream, error) {
res := c.pathManager.onDescribe(pathDescribeReq{
pathName: ctx.Path,
url: ctx.Req.URL,
url: ctx.Request.URL,
authenticate: func(
pathIPs []interface{},
pathUser conf.Credential,
pathPass conf.Credential) error {
return c.authenticate(ctx.Path, pathIPs, pathUser, pathPass, "read", ctx.Req, ctx.Query)
return c.authenticate(ctx.Path, pathIPs, pathUser, pathPass, "read", ctx.Request, ctx.Query)
},
})