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
+3 -1
View File
@@ -63,7 +63,9 @@ func Between(s, sub1, sub2 string) string {
}
func Atoi(s string) (i int) {
i, _ = strconv.Atoi(s)
if s != "" {
i, _ = strconv.Atoi(s)
}
return
}