mirror of https://bitbucket.org/ausocean/av.git
protocol/rtp/client.go: initialising PacketReader now to fix build runtime panic
This commit is contained in:
parent
6acc2d7376
commit
4f55f2bed1
|
@ -42,7 +42,7 @@ type Client struct {
|
||||||
// addr is the address of form <ip>:<port> that we expect to receive
|
// addr is the address of form <ip>:<port> that we expect to receive
|
||||||
// RTP at.
|
// RTP at.
|
||||||
func NewClient(addr string) (*Client, error) {
|
func NewClient(addr string) (*Client, error) {
|
||||||
c := &Client{}
|
c := &Client{r: &PacketReader{}}
|
||||||
|
|
||||||
a, err := net.ResolveUDPAddr("udp", addr)
|
a, err := net.ResolveUDPAddr("udp", addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue