rtmp: fix incorrect type

This commit is contained in:
Dan Kortschak 2018-09-19 13:59:32 +09:30
parent 9cfe8c430b
commit b1ecf52a44
1 changed files with 1 additions and 1 deletions

View File

@ -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)))