1 From db0aa7f0567435b14011750c02b0dcfd12cceb65 Mon Sep 17 00:00:00 2001
2 From: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
3 Date: Wed, 7 Mar 2012 12:55:43 +0100
4 Subject: [PATCH 08/20] opusenc: configure baseclass requested samples really
7 ... as opposed to bytes.
9 ext/opus/gstopusenc.c | 6 ++----
10 1 file changed, 2 insertions(+), 4 deletions(-)
12 diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
13 index 29b254e..a87e08b 100644
14 --- a/ext/opus/gstopusenc.c
15 +++ b/ext/opus/gstopusenc.c
16 @@ -382,10 +382,8 @@ gst_opus_enc_setup_base_class (GstOpusEnc * enc, GstAudioEncoder * benc)
18 gst_audio_encoder_set_latency (benc,
19 gst_opus_enc_get_latency (enc), gst_opus_enc_get_latency (enc));
20 - gst_audio_encoder_set_frame_samples_min (benc,
21 - enc->frame_samples * enc->n_channels * 2);
22 - gst_audio_encoder_set_frame_samples_max (benc,
23 - enc->frame_samples * enc->n_channels * 2);
24 + gst_audio_encoder_set_frame_samples_min (benc, enc->frame_samples);
25 + gst_audio_encoder_set_frame_samples_max (benc, enc->frame_samples);
26 gst_audio_encoder_set_frame_max (benc, 0);