lame: fix compilation with LAME versions < 3.98
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 May 2009 15:38:19 +0000 (16:38 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 May 2009 15:38:19 +0000 (16:38 +0100)
lame_set_VBR_quality(), which takes a floating point value for the
quality, has been added only in v3.98. Use lame_set_VBR_q(), which
takes quality as an integer, for older LAME versions.

Fixes #581341.

ext/lame/gstlamemp3enc.c

index 51e43ae..f898539 100644 (file)
 #include "gstlamemp3enc.h"
 #include <gst/gst-i18n-plugin.h>
 
+/* lame < 3.98 */
+#ifndef HAVE_LAME_SET_VBR_QUALITY
+#define lame_set_VBR_quality(flags,q) lame_set_VBR_q((flags),(int)(q))
+#endif
+
 GST_DEBUG_CATEGORY_STATIC (debug);
 #define GST_CAT_DEFAULT debug