From 406250807891064a63a469f568df26f94e3f41aa Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 28 Jul 2018 15:36:32 +0930 Subject: [PATCH] Now rtmpConnect1 is using after having gone in and started using C funcs, let's start to try and use mine instead --- rtmp/rtmp.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 3bc4d43e..637530a9 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -716,17 +716,17 @@ func rtmpConnect1(r *C.RTMP, cp *C.RTMPPacket) int { if debugMode { log.Println("... connected, handshaking...") } - // TODO: port this - if handShake(r, 1) == 0 { + + if C.HandShake(r, 1) == 0 { + //if handShake(r, 1) == 0 { log.Println("rtmpConnect1: handshake failed!") return 0 } if debugMode { log.Println("... handshaked...") } - - // TODO: port this - if sendConnectPacket(r, cp) == 0 { + if C.SendConnectPacket(r, cp) == 0 { + //if sendConnectPacket(r, cp) == 0 { log.Println("RTMP connect failed!") return 0 }