Let's try this

This commit is contained in:
Saxon1 2018-05-05 23:42:29 +09:30
parent 0e8ee5975d
commit 88c2104048
2 changed files with 5 additions and 5 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 // we will add some delay to slow things down until we have a connection again
time.Sleep(time.Duration(sendFailedDelay) * time.Second) time.Sleep(time.Duration(sendFailedDelay) * time.Second)
r.Log(Error, err2.Error()) r.Log(Error, err2.Error())
//if r.config.Output == NativeRtmp { if r.config.Output == NativeRtmp {
//r.rtmpInst.EndSession() r.rtmpInst.EndSession()
//err = r.rtmpInst.StartSession() err = r.rtmpInst.StartSession()
//} }
} }
// let the ringbuffer know that we're done with the memory we grabbed when // let the ringbuffer know that we're done with the memory we grabbed when
// we call ringBuffer.Get() // we call ringBuffer.Get()

View File

@ -32,7 +32,7 @@ LICENSE
#include "rtmp_c/librtmp/log.h" #include "rtmp_c/librtmp/log.h"
#include "rtmp_c/librtmp/rtmp.h" #include "rtmp_c/librtmp/rtmp.h"
static RTMP* rtmp = NULL; RTMP* rtmp = NULL;
unsigned int RTMP_start_session(char* url, uint connect_timeout){ unsigned int RTMP_start_session(char* url, uint connect_timeout){
printf("RTMP url: %s\n", url); printf("RTMP url: %s\n", url);