From 9bd643bc8965b397593b0cdf119ce6674a863076 Mon Sep 17 00:00:00 2001 From: saxon Date: Tue, 7 Aug 2018 12:07:42 +0930 Subject: [PATCH] Chaged name of rtmpEnableWrite to C_RTMP_EnableWrite --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 974cae6a..0dd9509a 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -426,7 +426,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) { return nil, errors.New("rtmp startSession: Failed to setup URL!") } - rtmpEnableWrite(rtmp) + C_RTMP_EnableWrite(rtmp) //C.RTMP_EnableWrite(rtmp) rtmpSetBufferMS(rtmp, 3600*1000) //C.RTMP_SetBufferMS(rtmp, 3600*1000) @@ -646,7 +646,7 @@ func closeInternal(r *C.RTMP, reconnect int32) { } */ -func rtmpEnableWrite(r *C.RTMP) { +func C_RTMP_EnableWrite(r *C.RTMP) { r.Link.protocol |= RTMP_FEATURE_WRITE }