Changed name of rtmpSetupUrl to C_RTMP_SetupUrl

This commit is contained in:
saxon 2018-08-07 12:04:49 +09:30
parent 10733af04f
commit 10d655f69c
1 changed files with 2 additions and 2 deletions

View File

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