trying not to end and start rtmp session

This commit is contained in:
Saxon1 2018-05-05 23:33:06 +09:30
parent 0b9f678354
commit 0e8ee5975d
1 changed files with 4 additions and 4 deletions

View File

@ -394,10 +394,10 @@ func (r *revid) outputClips() {
// we will add some delay to slow things down until we have a connection again
time.Sleep(time.Duration(sendFailedDelay) * time.Second)
r.Log(Error, err2.Error())
if r.config.Output == NativeRtmp {
r.rtmpInst.EndSession()
err = r.rtmpInst.StartSession()
}
//if r.config.Output == NativeRtmp {
//r.rtmpInst.EndSession()
//err = r.rtmpInst.StartSession()
//}
}
// let the ringbuffer know that we're done with the memory we grabbed when
// we call ringBuffer.Get()