1
0
Fork 0
forked from External/mediamtx

update gortsplib

This commit is contained in:
aler9 2022-06-05 01:36:29 +02:00
parent ba83ef65d2
commit 9d3fd3bc37
7 changed files with 23 additions and 19 deletions

View file

@ -11,6 +11,7 @@ import (
"github.com/aler9/gortsplib"
"github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/pkg/url"
"github.com/aler9/rtsp-simple-server/internal/conf"
"github.com/aler9/rtsp-simple-server/internal/externalcmd"
@ -119,7 +120,7 @@ type pathDescribeRes struct {
type pathDescribeReq struct {
pathName string
url *base.URL
url *url.URL
authenticate authenticateFunc
res chan pathDescribeRes
}
@ -781,7 +782,7 @@ func (pa *path) handleDescribe(req pathDescribeReq) {
if pa.conf.Fallback != "" {
fallbackURL := func() string {
if strings.HasPrefix(pa.conf.Fallback, "/") {
ur := base.URL{
ur := url.URL{
Scheme: req.url.Scheme,
User: req.url.User,
Host: req.url.Host,