mirror of https://bitbucket.org/ausocean/av.git
Let's try this
This commit is contained in:
parent
0e8ee5975d
commit
88c2104048
|
@ -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()
|
||||
|
|
|
@ -32,7 +32,7 @@ LICENSE
|
|||
#include "rtmp_c/librtmp/log.h"
|
||||
#include "rtmp_c/librtmp/rtmp.h"
|
||||
|
||||
static RTMP* rtmp = NULL;
|
||||
RTMP* rtmp = NULL;
|
||||
|
||||
unsigned int RTMP_start_session(char* url, uint connect_timeout){
|
||||
printf("RTMP url: %s\n", url);
|
||||
|
|
Loading…
Reference in New Issue