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 }