Now using my C_RTMP_ParseURL func - tested and working

This commit is contained in:
saxon 2018-08-11 01:17:48 +09:30
parent 2e3dfab7e2
commit e9a196306c
1 changed files with 5 additions and 3 deletions

View File

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