Add support custom timeout for RTSP source

This commit is contained in:
Alexey Khit
2023-08-23 14:08:15 +03:00
parent b1c0a28366
commit 9f9dc7e844
6 changed files with 24 additions and 13 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func Dial(rawURL string) (core.Producer, error) {
return nil, err
}
conn, err := tcp.Dial(u, "1935")
conn, err := tcp.Dial(u, "1935", core.ConnDialTimeout)
if err != nil {
return nil, err
}