mirror of https://bitbucket.org/ausocean/av.git
Using my rtmpInit - tested and working
This commit is contained in:
parent
e7ba480770
commit
0bac388843
|
@ -395,8 +395,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
|
|||
connect_timeout := C.int(timeout)
|
||||
rtmp = rtmpAlloc()
|
||||
//rtmp = C.RTMP_Alloc()
|
||||
// rtmpInit(rtmp)
|
||||
C.RTMP_Init(rtmp)
|
||||
rtmpInit(rtmp)
|
||||
//C.RTMP_Init(rtmp)
|
||||
rtmp.Link.timeout = connect_timeout
|
||||
// if rtmpSetupUrl(rtmp, u) == 0 {
|
||||
if C.RTMP_SetupURL(rtmp, C.CString(u)) == 0 {
|
||||
|
|
Loading…
Reference in New Issue