opusenc: configure baseclass requested samples really in samples

... as opposed to bytes.
This commit is contained in:
Mark Nauwelaerts 2012-03-07 12:55:43 +01:00
parent 33e8e137a6
commit db0aa7f056

View file

@ -382,10 +382,8 @@ gst_opus_enc_setup_base_class (GstOpusEnc * enc, GstAudioEncoder * benc)
{ {
gst_audio_encoder_set_latency (benc, gst_audio_encoder_set_latency (benc,
gst_opus_enc_get_latency (enc), gst_opus_enc_get_latency (enc)); gst_opus_enc_get_latency (enc), gst_opus_enc_get_latency (enc));
gst_audio_encoder_set_frame_samples_min (benc, gst_audio_encoder_set_frame_samples_min (benc, enc->frame_samples);
enc->frame_samples * enc->n_channels * 2); gst_audio_encoder_set_frame_samples_max (benc, enc->frame_samples);
gst_audio_encoder_set_frame_samples_max (benc,
enc->frame_samples * enc->n_channels * 2);
gst_audio_encoder_set_frame_max (benc, 0); gst_audio_encoder_set_frame_max (benc, 0);
} }