Fix RTSP passive producer

This commit is contained in:
Alexey Khit
2023-04-17 10:09:38 +03:00
parent 1837e7c86c
commit fd580b6f2c
2 changed files with 11 additions and 6 deletions
+1 -4
View File
@@ -151,10 +151,7 @@ func (c *Conn) Accept() error {
case MethodRecord, MethodPlay:
res := &tcp.Response{Request: req}
if err = c.WriteResponse(res); err == nil {
c.state = StatePlay
}
return err
return c.WriteResponse(res)
case MethodTeardown:
res := &tcp.Response{Request: req}