From 4f55f2bed149619d1f07ef8234192a8c628f91a5 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 11 May 2019 22:04:37 +0930 Subject: [PATCH] protocol/rtp/client.go: initialising PacketReader now to fix build runtime panic --- protocol/rtp/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/rtp/client.go b/protocol/rtp/client.go index ea6951cf..c5f3a998 100644 --- a/protocol/rtp/client.go +++ b/protocol/rtp/client.go @@ -42,7 +42,7 @@ type Client struct { // addr is the address of form : that we expect to receive // RTP at. func NewClient(addr string) (*Client, error) { - c := &Client{} + c := &Client{r: &PacketReader{}} a, err := net.ResolveUDPAddr("udp", addr) if err != nil {