From b302eafa6809b488541b201325eb9e3cd54ab21c Mon Sep 17 00:00:00 2001 From: Saxon Date: Fri, 19 Apr 2019 18:22:43 +0930 Subject: [PATCH] protocol/rtp: setting Client's op field in constructor --- protocol/rtp/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/rtp/client.go b/protocol/rtp/client.go index 4140abc1..22dd3d71 100644 --- a/protocol/rtp/client.go +++ b/protocol/rtp/client.go @@ -52,6 +52,7 @@ func NewClient(addr string, op func([]byte) ([]byte, error)) (*Client, error) { c := &Client{ done: make(chan struct{}, 10), ring: ring.NewBuffer(10, 4096, 0), + op: op, } a, err := net.ResolveUDPAddr("udp", addr)