lame: fix compilation with LAME versions < 3.98

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.
This commit is contained in:
Tim-Philipp Müller 2009-05-05 16:38:19 +01:00
parent d1845b62f0
commit 8da711f16c

View file

@ -67,6 +67,11 @@
#include "gstlamemp3enc.h" #include "gstlamemp3enc.h"
#include <gst/gst-i18n-plugin.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); GST_DEBUG_CATEGORY_STATIC (debug);
#define GST_CAT_DEFAULT debug #define GST_CAT_DEFAULT debug