mirror of https://bitbucket.org/ausocean/av.git
still trying to fix things
This commit is contained in:
parent
51b18fbaa7
commit
a416edfc74
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue