client: fix check

This commit is contained in:
aler9
2021-11-12 22:22:18 +01:00
parent ed2f712db2
commit d205c00878

View File

@@ -813,7 +813,7 @@ func (c *Client) connOpen() error {
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")
}