From 842fea8bcee7933c315dfee950d80460b1b0d2be Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 21 Nov 2018 01:17:48 +1030 Subject: [PATCH] rtp: fixed bug in Queue creation --- stream/rtp/encoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/rtp/encoder.go b/stream/rtp/encoder.go index becb9c6e..527d8c6f 100644 --- a/stream/rtp/encoder.go +++ b/stream/rtp/encoder.go @@ -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(),