From 863db58a843bd47b7c4745334032785e9f4e6d89 Mon Sep 17 00:00:00 2001 From: scruzin Date: Wed, 10 Apr 2019 16:32:07 +0930 Subject: [PATCH] Removed references to obsolete Session. --- protocol/rtmp/packet.go | 2 +- protocol/rtmp/rtmp_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/rtmp/packet.go b/protocol/rtmp/packet.go index 5f46851d..dda53d35 100644 --- a/protocol/rtmp/packet.go +++ b/protocol/rtmp/packet.go @@ -259,7 +259,7 @@ func (pkt *packet) resize(size uint32, ht uint8) { } // writeTo writes a packet to the RTMP connection. -// Packets are written in chunks which are Session.chunkSize in length (128 bytes in length). +// Packets are written in chunks which are c.chunkSize in length (128 bytes by default). // We defer sending small audio packets and combine consecutive small audio packets where possible to reduce I/O. // When queue is true, we expect a response to this request and cache the method on c.methodCalls. func (pkt *packet) writeTo(c *Conn, queue bool) error { diff --git a/protocol/rtmp/rtmp_test.go b/protocol/rtmp/rtmp_test.go index 8ccb2e12..f2d661c5 100644 --- a/protocol/rtmp/rtmp_test.go +++ b/protocol/rtmp/rtmp_test.go @@ -206,7 +206,7 @@ func TestFromFrame(t *testing.T) { err = c.Close() if err != nil { - t.Errorf("Session.Close failed with error: %v", err) + t.Errorf("Conn.Close failed with error: %v", err) } } @@ -256,6 +256,6 @@ func TestFromFile(t *testing.T) { err = c.Close() if err != nil { - t.Errorf("Session.Close failed with error: %v", err) + t.Errorf("Conn.Close failed with error: %v", err) } }