mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-29 22:42:00 -08:00
write URL in uppercase
This commit is contained in:
parent
7490346a33
commit
a2dcb61978
1 changed files with 5 additions and 5 deletions
|
|
@ -139,7 +139,7 @@ func (pconf *PathConf) fillAndCheck(name string) error {
|
|||
|
||||
u, err := base.ParseURL(pconf.Source)
|
||||
if err != nil {
|
||||
return fmt.Errorf("'%s' is not a valid RTSP url", pconf.Source)
|
||||
return fmt.Errorf("'%s' is not a valid RTSP URL", pconf.Source)
|
||||
}
|
||||
|
||||
if u.User != nil {
|
||||
|
|
@ -181,10 +181,10 @@ func (pconf *PathConf) fillAndCheck(name string) error {
|
|||
|
||||
u, err := url.Parse(pconf.Source)
|
||||
if err != nil {
|
||||
return fmt.Errorf("'%s' is not a valid RTMP url", pconf.Source)
|
||||
return fmt.Errorf("'%s' is not a valid RTMP URL", pconf.Source)
|
||||
}
|
||||
if u.Scheme != "rtmp" {
|
||||
return fmt.Errorf("'%s' is not a valid RTMP url", pconf.Source)
|
||||
return fmt.Errorf("'%s' is not a valid RTMP URL", pconf.Source)
|
||||
}
|
||||
|
||||
if u.User != nil {
|
||||
|
|
@ -203,7 +203,7 @@ func (pconf *PathConf) fillAndCheck(name string) error {
|
|||
|
||||
_, err := base.ParseURL(pconf.SourceRedirect)
|
||||
if err != nil {
|
||||
return fmt.Errorf("'%s' is not a valid RTSP url", pconf.SourceRedirect)
|
||||
return fmt.Errorf("'%s' is not a valid RTSP URL", pconf.SourceRedirect)
|
||||
}
|
||||
|
||||
default:
|
||||
|
|
@ -234,7 +234,7 @@ func (pconf *PathConf) fillAndCheck(name string) error {
|
|||
} else {
|
||||
_, err := base.ParseURL(pconf.Fallback)
|
||||
if err != nil {
|
||||
return fmt.Errorf("'%s' is not a valid RTSP url", pconf.Fallback)
|
||||
return fmt.Errorf("'%s' is not a valid RTSP URL", pconf.Fallback)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue