Merge pull request #20 from ziminghua/aler9

解决发布超时后,重连RTSP,无法播放的BUG
This commit is contained in:
dexter
2022-02-22 21:17:24 +08:00
committed by GitHub

View File

@@ -42,6 +42,7 @@ func (rtsp *RTSPClient) PullStream(streamPath string, rtspUrl string) (err error
time.Sleep(time.Second * 5)
}
if rtsp.IsTimeout {
rtsp.processFunc = nil
go rtsp.PullStream(streamPath, rtspUrl)
}
}()