mirror of https://bitbucket.org/ausocean/av.git
rtp: fixed bug in Queue creation
This commit is contained in:
parent
8be3c4de23
commit
842fea8bce
|
@ -114,7 +114,7 @@ type Encoder struct {
|
|||
// NewEncoder returns a new Encoder type given an io.Writer - the destination
|
||||
// after encoding and the desired fps
|
||||
func NewEncoder(dst io.Writer, fps int) *Encoder {
|
||||
q := &Queue{}
|
||||
q, _ := NewQueue(bufferSize, mtsSize)
|
||||
return &Encoder{
|
||||
dst: dst,
|
||||
ssrc: rand.Uint32(),
|
||||
|
|
Loading…
Reference in New Issue