diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 1e087e19..81a27e9e 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -534,9 +534,11 @@ func C_RTMP_SetupURL(r *C.RTMP, u string) int32 { length = strlen(url) // TODO: port this - ret = int32(C.RTMP_ParseURL((*C.char)(unsafe.Pointer(url)), &r.Link.protocol, &r.Link.hostname, - (*C.uint)(&port), &r.Link.playpath0, &r.Link.app)) - + //ret = int32(C.RTMP_ParseURL((*C.char)(unsafe.Pointer(url)), &r.Link.protocol, + // &r.Link.hostname, (*C.uint)(&port), &r.Link.playpath0, &r.Link.app)) + ret = int32(C_RTMP_ParseURL((*byte)(unsafe.Pointer(url)), (*int32)( + unsafe.Pointer(&r.Link.protocol)), &r.Link.hostname, (*uint32)( + unsafe.Pointer(&port)), &r.Link.playpath0, &r.Link.app)) if ret == 0 { return ret }