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);
|
// int RTMP_Connect0(RTMP *r, struct sockaddr* service);
|
||||||
// rtmp.c +906
|
// rtmp.c +906
|
||||||
func C_RTMP_Connect0(r *C_RTMP, service *C.sockaddr) (ok bool) {
|
func C_RTMP_Connect0(r *C_RTMP, service *C.sockaddr) (ok bool) {
|
||||||
on := 1
|
|
||||||
r.m_sb.sb_timedout = false
|
r.m_sb.sb_timedout = false
|
||||||
r.m_pausing = 0
|
r.m_pausing = 0
|
||||||
r.m_fDuration = 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,
|
C.setsockopt(C.int(r.m_sb.sb_socket), C.IPPROTO_TCP, C.TCP_NODELAY,
|
||||||
unsafe.Pointer(&on), C.socklen_t(unsafe.Sizeof(on)))
|
unsafe.Pointer(&on), C.socklen_t(unsafe.Sizeof(on)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue