diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 2aa11e73..78d6443c 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -416,7 +416,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { connect_timeout := C.int(timeout) rtmp = C_RTMP_Alloc() //rtmp = C.RTMP_Alloc() - rtmpInit(rtmp) + C_RTMP_Init(rtmp) //C.RTMP_Init(rtmp) rtmp.Link.timeout = connect_timeout if rtmpSetupUrl(rtmp, u) == 0 { @@ -453,7 +453,7 @@ func C_RTMP_Alloc() *C.RTMP { return (*C.RTMP)(allocate(unsafe.Sizeof(r))) } -func rtmpInit(r *C.RTMP) { +func C_RTMP_Init(r *C.RTMP) { r.m_sb.sb_socket = -1 r.m_inChunkSize = RTMP_DEFAULT_CHUNKSIZE r.m_outChunkSize = RTMP_DEFAULT_CHUNKSIZE