Changed name of rtmpInit to C_RTMP_Init

This commit is contained in:
saxon 2018-08-07 12:04:04 +09:30
parent ba101285ff
commit 10733af04f
1 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
connect_timeout := C.int(timeout) connect_timeout := C.int(timeout)
rtmp = C_RTMP_Alloc() rtmp = C_RTMP_Alloc()
//rtmp = C.RTMP_Alloc() //rtmp = C.RTMP_Alloc()
rtmpInit(rtmp) C_RTMP_Init(rtmp)
//C.RTMP_Init(rtmp) //C.RTMP_Init(rtmp)
rtmp.Link.timeout = connect_timeout rtmp.Link.timeout = connect_timeout
if rtmpSetupUrl(rtmp, u) == 0 { if rtmpSetupUrl(rtmp, u) == 0 {
@ -453,7 +453,7 @@ func C_RTMP_Alloc() *C.RTMP {
return (*C.RTMP)(allocate(unsafe.Sizeof(r))) 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_sb.sb_socket = -1
r.m_inChunkSize = RTMP_DEFAULT_CHUNKSIZE r.m_inChunkSize = RTMP_DEFAULT_CHUNKSIZE
r.m_outChunkSize = RTMP_DEFAULT_CHUNKSIZE r.m_outChunkSize = RTMP_DEFAULT_CHUNKSIZE