diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-06-21 15:12:41 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-06-21 15:12:41 +0000 |
commit | bdf4107117ea6b0e166c1be3ef270f631403a154 (patch) | |
tree | 5983aef600399a57f75928dd2858ed1318ccc9ff /src/inputPlugins | |
parent | 30df7d49c5a4c5d377fed6111f8867f16be05a8c (diff) | |
download | mpd-bdf4107117ea6b0e166c1be3ef270f631403a154.tar.gz mpd-bdf4107117ea6b0e166c1be3ef270f631403a154.tar.xz mpd-bdf4107117ea6b0e166c1be3ef270f631403a154.zip |
Rewrote id3Dup to search for tags manually. Now libid3tag will actually tell us the version of the tag we got. As an added benefit we also do fewer reads/mallocs when scanning mp3s during database update/creation.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4277 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins')
-rw-r--r-- | src/inputPlugins/mp3_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c index 6fe9f3849..79215bcd9 100644 --- a/src/inputPlugins/mp3_plugin.c +++ b/src/inputPlugins/mp3_plugin.c @@ -252,7 +252,9 @@ void mp3_getReplayGainInfo(struct id3_tag * tag, ReplayGainInfo ** infoPtr) { *infoPtr = NULL; } } +#endif +#ifdef HAVE_ID3TAG static void mp3_parseId3Tag(mp3DecodeData * data, signed long tagsize, MpdTag ** mpdTag, ReplayGainInfo ** replayGainInfo) { struct id3_tag * id3Tag = NULL; id3_length_t count; |