aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-18 03:29:25 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-18 03:29:25 +0000
commit91450723b277fc8fa2d4bcfecb762c30ab7bfb21 (patch)
tree86a99e6b11b10bcb0f6407593f2a72ccbf46492d /src/ls.c
parent02346f2f1a82fd76dad6e4f01a51a655f9677541 (diff)
downloadmpd-91450723b277fc8fa2d4bcfecb762c30ab7bfb21.tar.gz
mpd-91450723b277fc8fa2d4bcfecb762c30ab7bfb21.tar.xz
mpd-91450723b277fc8fa2d4bcfecb762c30ab7bfb21.zip
bunch of autotool cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@271 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/ls.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/ls.c b/src/ls.c
index f80c7209c..de4f2562d 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -126,7 +126,6 @@ int isMusic(char * utf8file, time_t * mtime) {
if((ret = isWave(utf8file,mtime))) return ret;
#endif
#ifdef HAVE_FAAD
- if((ret = isAac(utf8file,mtime))) return ret;
if((ret = isMp4(utf8file,mtime))) return ret;
#endif
@@ -281,35 +280,6 @@ int isMp4(char * utf8file, time_t * mtime) {
return 0;
}
-int isAac(char * utf8file, time_t * mtime) {
- struct stat st;
- char * file = utf8ToFsCharset(utf8file);
- char * actualFile = file;
-
- if(actualFile[0]!='/') actualFile = rmp2amp(file);
-
- if(stat(actualFile,&st)==0) {
- if(S_ISREG(st.st_mode)) {
- char * dup;
- char * cLast;
- char * cNext;
- int ret = 0;
- dup = strdup(file);
- cNext = cLast = strtok(dup,".");
- while((cNext = strtok(NULL,"."))) cLast = cNext;
- if(cLast && 0==strcasecmp(cLast,"aac")) {
- if(mtime) *mtime = st.st_mtime;
- ret = 1;
- }
- free(dup);
- return ret;
- }
- else return 0;
- }
-
- return 0;
-}
-
int isMp3(char * utf8file, time_t * mtime) {
struct stat st;
char * file = utf8ToFsCharset(utf8file);