From 40806d4de7a5a02f859a98ed5569fbed805ce62e Mon Sep 17 00:00:00 2001 From: scruzin Date: Sun, 13 Jan 2019 07:11:25 +1030 Subject: [PATCH] Removed unused extras from rtmp.link. --- rtmp/rtmp.go | 7 ------- rtmp/session.go | 1 - 2 files changed, 8 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 93d07328..6e57a452 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -408,13 +408,6 @@ func sendConnectPacket(s *Session) error { } } - for i := range s.link.extras.Properties { - enc, err = amf.PropEncode(&s.link.extras.Properties[i], enc) - if err != nil { - return err - } - } - pkt.bodySize = uint32((len(pbuf) - fullHeaderSize) - len(enc)) return pkt.write(s, true) // response expected diff --git a/rtmp/session.go b/rtmp/session.go index ed40be8c..cbe27c8f 100644 --- a/rtmp/session.go +++ b/rtmp/session.go @@ -81,7 +81,6 @@ type link struct { auth string flashVer string token string - extras amf.Object flags int32 swfAge int32 protocol int32