mirror of https://bitbucket.org/ausocean/av.git
protocol/rtp: setting Client's op field in constructor
This commit is contained in:
parent
ccc08bfad1
commit
b302eafa68
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue