From 62497d4ba8f8e2759f0772e3eab77e1445701dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 26 Sep 2011 16:29:12 +0200 Subject: [PATCH] twolame: Simple fix for GstAudioEncoder API change --- ext/twolame/gsttwolame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/twolame/gsttwolame.c b/ext/twolame/gsttwolame.c index 1677ff37ec..7d7fdc63cf 100644 --- a/ext/twolame/gsttwolame.c +++ b/ext/twolame/gsttwolame.c @@ -402,7 +402,8 @@ gst_two_lame_set_format (GstAudioEncoder * enc, GstAudioInfo * info) /* report needs to base class: * hand one frame at a time, if we are pretty sure what a frame is */ if (out_samplerate == twolame->samplerate) { - gst_audio_encoder_set_frame_samples (enc, 1152); + gst_audio_encoder_set_frame_samples_min (enc, 1152); + gst_audio_encoder_set_frame_samples_max (enc, 1152); gst_audio_encoder_set_frame_max (enc, 1); }