mirror of
https://github.com/aler9/gortsplib
synced 2025-10-29 01:33:00 +08:00
client: fix check
This commit is contained in:
@@ -813,7 +813,7 @@ func (c *Client) connOpen() error {
|
|||||||
return fmt.Errorf("unsupported scheme '%s'", c.scheme)
|
return fmt.Errorf("unsupported scheme '%s'", c.scheme)
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.scheme == "rtsps" && (c.Transport == nil || *c.Transport != TransportTCP) {
|
if c.scheme == "rtsps" && c.Transport != nil && *c.Transport != TransportTCP {
|
||||||
return fmt.Errorf("RTSPS can be used only with TCP")
|
return fmt.Errorf("RTSPS can be used only with TCP")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user