mirror of https://bitbucket.org/ausocean/av.git
trying to fix mem problem
This commit is contained in:
parent
ea0ee8fc08
commit
03a919dd0c
|
@ -382,6 +382,7 @@ func (r *revid) outputClips() {
|
||||||
r.Log(Debug,"About to send!")
|
r.Log(Debug,"About to send!")
|
||||||
err2 := r.sendClip(clip)
|
err2 := r.sendClip(clip)
|
||||||
r.Log(Debug,"Finished send!")
|
r.Log(Debug,"Finished send!")
|
||||||
|
|
||||||
for ; err2 != nil; errorCount++ {
|
for ; err2 != nil; errorCount++ {
|
||||||
r.Log(Warning, "Send failed trying again!")
|
r.Log(Warning, "Send failed trying again!")
|
||||||
// If the clip size is not bigger than the threshold then we classify
|
// If the clip size is not bigger than the threshold then we classify
|
||||||
|
@ -402,6 +403,7 @@ func (r *revid) outputClips() {
|
||||||
r.Log(Error, err2.Error())
|
r.Log(Error, err2.Error())
|
||||||
if r.config.Output == NativeRtmp && errorCount > 10 {
|
if r.config.Output == NativeRtmp && errorCount > 10 {
|
||||||
r.rtmpInst.EndSession()
|
r.rtmpInst.EndSession()
|
||||||
|
r.rtmpInst = rtmp.NewRTMPSession(r.config.RtmpUrl, rtmpConnectionTimout)
|
||||||
err = r.rtmpInst.StartSession()
|
err = r.rtmpInst.StartSession()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue