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) } }