From 27006d8fd38f0c25b2df524458e53613ed816ece Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 15 Aug 2018 03:16:46 +0930 Subject: [PATCH] Forgot to actually ues AMFProp_GetNumber - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index b60af923..bb81859c 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1977,7 +1977,7 @@ func C_HandleInvoke(r *C.RTMP, body *byte, nBodySize uint32) int32 { //C.AMF_Dump(&obj) //C.AMFProp_GetString(C_AMF_GetProp(&obj, nil, 0), &method) C_AMFProp_GetString(C_AMF_GetProp(&obj, nil, 0), &method) - txn = float64(C.AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 1))) + txn = float64(C_AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 1))) // TODO use new logger here // RTMP_Log(RTMP_LOGDEBUG, "%s, server invoking <%s>", __FUNCTION__, method.av_val); @@ -2062,7 +2062,7 @@ func C_HandleInvoke(r *C.RTMP, body *byte, nBodySize uint32) int32 { case C_AVMATCH(&methodInvoked, &av_createStream) != 0: { log.Println("5") - r.m_stream_id = C.int(C.AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 3))) + r.m_stream_id = C.int(C_AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 3))) if (r.Link.protocol & RTMP_FEATURE_WRITE) != 0 { log.Println("5.1")