diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 78d6443c..7e2a1cff 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -419,7 +419,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { C_RTMP_Init(rtmp) //C.RTMP_Init(rtmp) rtmp.Link.timeout = connect_timeout - if rtmpSetupUrl(rtmp, u) == 0 { + if C_RTMP_SetupUrl(rtmp, u) == 0 { // if C.RTMP_SetupURL(rtmp, C.CString(u)) == 0 { //C.RTMP_Close(rtmp) //C.RTMP_Free(rtmp) @@ -467,7 +467,7 @@ func C_RTMP_Init(r *C.RTMP) { r.Link.swfAge = 30 } -func rtmpSetupUrl(r *C.RTMP, u string) int32 { +func C_RTMP_SetupUrl(r *C.RTMP, u string) int32 { url := goStrToCStr(u) var ret, len int32