aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.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/player.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 '')
-rw-r--r--src/player.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index d6a79b74a..81b78ca39 100644
--- a/src/player.c
+++ b/src/player.c
@@ -178,6 +178,7 @@ int playerPlay(FILE * fp, char * utf8file) {
else if(isWave(utf8file,NULL)) pc->decodeType = DECODE_TYPE_AUDIOFILE;
#endif
#ifdef HAVE_FAAD
+ else if(isAac(utf8file,NULL)) pc->decodeType = DECODE_TYPE_AAC;
else if(isMp4(utf8file,NULL)) pc->decodeType = DECODE_TYPE_MP4;
#endif
else {
@@ -336,6 +337,9 @@ int queueSong(char * utf8file) {
}
#endif
#ifdef HAVE_AUDIOFILE
+ else if(isAac(utf8file,NULL)) {
+ pc->decodeType = DECODE_TYPE_AAC;
+ }
else if(isMp4(utf8file,NULL)) {
pc->decodeType = DECODE_TYPE_MP4;
}