aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-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;
}