From d3b00475aed8670dbf2e6d40cb736a7067f84159 Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 20 Jul 2018 17:50:32 +0930 Subject: [PATCH] Using Saxon's setup URL func, tested and working --- rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 366008f8..a9f715db 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -363,7 +363,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { rtmp = rtmpAlloc() rtmpInit(rtmp) rtmp.Link.timeout = connect_timeout - if C.RTMP_SetupURL(rtmp, (*C.char)(unsafe.Pointer(goStrToCStr(u)))) == 0 { + if rtmpSetupUrl(rtmp, u) == 0 { C.RTMP_Close(rtmp) C.RTMP_Free(rtmp) return nil, errors.New("rtmp startSession: Failed to setup URL!")