Fix backchannel reconnection issue

This commit is contained in:
Alexey Khit
2022-10-29 11:33:01 +03:00
parent 7964b1743b
commit 24082b1616
3 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -84,10 +84,10 @@ func rtspHandler(url string) (streamer.Producer, error) {
}
// second try without backchannel, we need to reconnect
conn.Backchannel = false
if err = conn.Dial(); err != nil {
return nil, err
}
conn.Backchannel = false
if err = conn.Describe(); err != nil {
return nil, err
}