mirror of https://bitbucket.org/ausocean/av.git
Changed name of rtmpInit to C_RTMP_Init
This commit is contained in:
parent
ba101285ff
commit
10733af04f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue