rtp: fixed bug in Queue creation

This commit is contained in:
saxon 2018-11-21 01:17:48 +10:30
parent 8be3c4de23
commit 842fea8bce
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ type Encoder struct {
// NewEncoder returns a new Encoder type given an io.Writer - the destination // NewEncoder returns a new Encoder type given an io.Writer - the destination
// after encoding and the desired fps // after encoding and the desired fps
func NewEncoder(dst io.Writer, fps int) *Encoder { func NewEncoder(dst io.Writer, fps int) *Encoder {
q := &Queue{} q, _ := NewQueue(bufferSize, mtsSize)
return &Encoder{ return &Encoder{
dst: dst, dst: dst,
ssrc: rand.Uint32(), ssrc: rand.Uint32(),