aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-17 17:30:50 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-17 17:30:50 +0000
commit9a7636f5bc50fdff56012a38076ec51d3b671711 (patch)
tree8d938207f03b1a575d70e535e039975d2bd916fa /src/song.c
parentb2b700a87d33eb536f33e59b286f8bd3e240486e (diff)
downloadmpd-9a7636f5bc50fdff56012a38076ec51d3b671711.tar.gz
mpd-9a7636f5bc50fdff56012a38076ec51d3b671711.tar.xz
mpd-9a7636f5bc50fdff56012a38076ec51d3b671711.zip
have AAC and MP4 types
git-svn-id: https://svn.musicpd.org/mpd/trunk@267 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/song.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c
index 4a0cfd4bb..377487cbd 100644
--- a/src/song.c
+++ b/src/song.c
@@ -82,6 +82,9 @@ Song * newSong(char * utf8file) {
else if(isAac(utf8file,&(song->mtime))) {
song->tag = aacTagDup(utf8file);
}
+ else if(isMp4(utf8file,&(song->mtime))) {
+ song->tag = mp4TagDup(utf8file);
+ }
#endif
if(!song->tag || song->tag->time<0) {
@@ -249,6 +252,9 @@ int updateSongInfo(Song * song) {
else if(isAac(utf8file,&(song->mtime))) {
song->tag = aacTagDup(utf8file);
}
+ else if(isMp4(utf8file,&(song->mtime))) {
+ song->tag = mp4TagDup(utf8file);
+ }
#endif
if(!song->tag || song->tag->time<0) return -1;