mirror of https://bitbucket.org/ausocean/av.git
simple try
This commit is contained in:
parent
5da36ab35c
commit
45f33f3d3a
|
@ -314,10 +314,6 @@ func (r *revid) packClips() {
|
||||||
// Keep clearing output chan until out buffer has some space
|
// Keep clearing output chan until out buffer has some space
|
||||||
for clip, err = r.ringBuffer.Get(); err != nil; {
|
for clip, err = r.ringBuffer.Get(); err != nil; {
|
||||||
r.flushData()
|
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()
|
rtmpError := r.rtmpInst.StartSession()
|
||||||
if rtmpError != nil {
|
if rtmpError != nil {
|
||||||
r.Log(Error, rtmpError.Error())
|
r.Log(Error, rtmpError.Error())
|
||||||
|
|
Loading…
Reference in New Issue