Fix busy RTSP backchannel

This commit is contained in:
Alexey Khit
2022-08-22 15:41:19 +03:00
parent a9af245ef8
commit 12b712426d
3 changed files with 27 additions and 11 deletions

View File

@@ -80,6 +80,12 @@ func (a *Auth) Write(req *Request) {
}
}
func (a *Auth) Reset() {
if a.Method == AuthDigest {
a.Method = AuthUnknown
}
}
func Between(s, sub1, sub2 string) string {
i := strings.Index(s, sub1)
if i < 0 {