still trying to fix things

This commit is contained in:
Saxon1 2018-04-26 15:49:30 +09:30
parent 51b18fbaa7
commit a416edfc74
2 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,7 @@ func main() {
config.IntraRefreshPeriod = *configFlags[intraRefreshPeriodPtr]
// Also give the config a logger object
config.Logger = smartLogger.New(loggerVerbosity, smartLogger.White)
// config.Logger = smartLogger.New(loggerVerbosity, smartLogger.White)
time.Sleep(time.Duration(prepTime) * time.Second)
createRevidInstance()

View File

@ -314,7 +314,9 @@ func (r *revid) packClips() {
// Keep clearing output chan until out buffer has some space
for clip, err = r.ringBuffer.Get(); err != nil; {
r.flushData()
r.Log(Debug,"Ending rtmp session")
r.rtmpInst.EndSession()
r.Log(Debug, "Creating new session")
r.rtmpInst = rtmp.NewRTMPSession(r.config.RtmpUrl, rtmpConnectionTimout)
rtmpError := r.rtmpInst.StartSession()
if rtmpError != nil {