rtsp, rtmp: fix ignored errors

This commit is contained in:
aler9
2021-08-19 17:28:42 +02:00
parent 4fdd42fa58
commit 801ef44f54
2 changed files with 11 additions and 16 deletions

View File

@@ -177,7 +177,7 @@ func (s *rtspSource) runInner() bool {
Tracks: conn.Tracks(),
})
if res.Err != nil {
s.log(logger.Info, "ERR: %s", err)
s.log(logger.Info, "ERR: %s", res.Err)
return true
}