aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-17 03:10:17 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-17 03:10:17 +0000
commitf114fbd437dc4f767d85b9f429adf3a3eb9b943f (patch)
treec6a4a83596498787c7457998ad4d22d93cad1796 /src/song.c
parent0f11ce855e1cd4949d2c5db9c3f616b7be201b11 (diff)
downloadmpd-f114fbd437dc4f767d85b9f429adf3a3eb9b943f.tar.gz
mpd-f114fbd437dc4f767d85b9f429adf3a3eb9b943f.tar.xz
mpd-f114fbd437dc4f767d85b9f429adf3a3eb9b943f.zip
fix a few snafoo's in configure.ac
Add initial stuff for AAC support, now we just need to write the decoder git-svn-id: https://svn.musicpd.org/mpd/trunk@264 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c
index 42754c12d..4a0cfd4bb 100644
--- a/src/song.c
+++ b/src/song.c
@@ -78,6 +78,11 @@ Song * newSong(char * utf8file) {
song->tag = audiofileTagDup(utf8file);
}
#endif
+#ifdef HAVE_FAAD
+ else if(isAac(utf8file,&(song->mtime))) {
+ song->tag = aacTagDup(utf8file);
+ }
+#endif
if(!song->tag || song->tag->time<0) {
freeSong(song);
@@ -240,6 +245,11 @@ int updateSongInfo(Song * song) {
song->tag = audiofileTagDup(utf8file);
}
#endif
+#ifdef HAVE_FAAD
+ else if(isAac(utf8file,&(song->mtime))) {
+ song->tag = aacTagDup(utf8file);
+ }
+#endif
if(!song->tag || song->tag->time<0) return -1;
else addSongToTables(song);