mirror of https://bitbucket.org/ausocean/av.git
Now using my C_RTMP_ParseURL func - tested and working
This commit is contained in:
parent
2e3dfab7e2
commit
e9a196306c
|
@ -534,9 +534,11 @@ func C_RTMP_SetupURL(r *C.RTMP, u string) int32 {
|
||||||
|
|
||||||
length = strlen(url)
|
length = strlen(url)
|
||||||
// TODO: port this
|
// TODO: port this
|
||||||
ret = int32(C.RTMP_ParseURL((*C.char)(unsafe.Pointer(url)), &r.Link.protocol, &r.Link.hostname,
|
//ret = int32(C.RTMP_ParseURL((*C.char)(unsafe.Pointer(url)), &r.Link.protocol,
|
||||||
(*C.uint)(&port), &r.Link.playpath0, &r.Link.app))
|
// &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 {
|
if ret == 0 {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue