aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-21 18:12:37 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-21 18:12:37 +0000
commitb72f591641e9d311e813fb8e2ece643cc6562e56 (patch)
tree103c9aa6e487c938fd8762a4534f93c6a22589a8 /src/song.c
parent1bb75913c37b7494871964fd214eacdd6cb78ccb (diff)
downloadmpd-b72f591641e9d311e813fb8e2ece643cc6562e56.tar.gz
mpd-b72f591641e9d311e813fb8e2ece643cc6562e56.tar.xz
mpd-b72f591641e9d311e813fb8e2ece643cc6562e56.zip
parse length from Aac files and ID3 tags
git-svn-id: https://svn.musicpd.org/mpd/trunk@346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c
index ac60692ad..377487cbd 100644
--- a/src/song.c
+++ b/src/song.c
@@ -79,6 +79,9 @@ Song * newSong(char * utf8file) {
}
#endif
#ifdef HAVE_FAAD
+ else if(isAac(utf8file,&(song->mtime))) {
+ song->tag = aacTagDup(utf8file);
+ }
else if(isMp4(utf8file,&(song->mtime))) {
song->tag = mp4TagDup(utf8file);
}
@@ -246,6 +249,9 @@ int updateSongInfo(Song * song) {
}
#endif
#ifdef HAVE_FAAD
+ else if(isAac(utf8file,&(song->mtime))) {
+ song->tag = aacTagDup(utf8file);
+ }
else if(isMp4(utf8file,&(song->mtime))) {
song->tag = mp4TagDup(utf8file);
}