mirror of https://bitbucket.org/ausocean/av.git
rtmp: fix incorrect type
This commit is contained in:
parent
9cfe8c430b
commit
b1ecf52a44
|
@ -353,7 +353,6 @@ func C_add_addr_info(service *C.sockaddr_in, hostname string, port uint16) (ok b
|
|||
// int RTMP_Connect0(RTMP *r, struct sockaddr* service);
|
||||
// rtmp.c +906
|
||||
func C_RTMP_Connect0(r *C_RTMP, service *C.sockaddr) (ok bool) {
|
||||
on := 1
|
||||
r.m_sb.sb_timedout = false
|
||||
r.m_pausing = 0
|
||||
r.m_fDuration = 0
|
||||
|
@ -390,6 +389,7 @@ func C_RTMP_Connect0(r *C_RTMP, service *C.sockaddr) (ok bool) {
|
|||
}
|
||||
}
|
||||
|
||||
on := C.int(1)
|
||||
C.setsockopt(C.int(r.m_sb.sb_socket), C.IPPROTO_TCP, C.TCP_NODELAY,
|
||||
unsafe.Pointer(&on), C.socklen_t(unsafe.Sizeof(on)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue