ref: d46ab74de03e87076867c90b78c2a35b3b693452
parent: c03d444e53b9920b9ada2acf658775dc518cfc21
author: cbagwell <cbagwell>
date: Fri Nov 27 20:15:24 EST 2009
Only support ID3TAG writing with lame 3.98 using id3tag_set_fieldvalue as basis of that version check.
--- a/INSTALL
+++ b/INSTALL
@@ -228,7 +228,7 @@
o SoX source distribution version 14.0.1
available on [http://sox.sourceforge.net]
-o LAME source distribution version 3.97
+o LAME source distribution version 3.97. 3.98 required for ID3TAG support.
available on [http://lame.sourceforge.net]
o MAD source distribution version 0.15.1b
--- a/src/mp3.c
+++ b/src/mp3.c
@@ -122,7 +122,7 @@
#else
#define LAME_FUNC_LAMETAG LSX_DLENTRY_STUB
#endif
- #ifdef HAVE_LAME_ID3TAG
+ #ifdef HAVE_ID3TAG_SET_FIELDVALUE
#define LAME_FUNC_ID3 LSX_DLENTRY_STATIC
#else
#define LAME_FUNC_ID3 LSX_DLENTRY_STUB
@@ -727,6 +727,7 @@
p->lame_set_in_samplerate(p->gfp,(int)ft->signal.rate);
p->lame_set_out_samplerate(p->gfp,(int)ft->signal.rate);
+
if (!LSX_DLFUNC_IS_STUB(p, id3tag_init))
write_comments(ft);