diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-10 02:58:27 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-10 02:58:27 +0000 |
commit | c69b615f2b17a927f2c49ab9cd381eb1e5a8e2a4 (patch) | |
tree | 2a3436d5ad006470faa473478d585acad70ee2b7 /src/player.c | |
parent | ec234e985563316d725c7a8b8873f2c34e4d4635 (diff) | |
download | mpd-c69b615f2b17a927f2c49ab9cd381eb1e5a8e2a4.tar.gz mpd-c69b615f2b17a927f2c49ab9cd381eb1e5a8e2a4.tar.xz mpd-c69b615f2b17a927f2c49ab9cd381eb1e5a8e2a4.zip |
fix it so that mpd will work if mtime is 0 (for those strange folk)
git-svn-id: https://svn.musicpd.org/mpd/trunk@237 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/player.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/player.c b/src/player.c index 3a9f455d0..2b45e6ab4 100644 --- a/src/player.c +++ b/src/player.c @@ -166,16 +166,16 @@ int playerPlay(FILE * fp, char * utf8file) { if(0); #ifdef HAVE_MAD - else if(isMp3(utf8file)) pc->decodeType = DECODE_TYPE_MP3; + else if(isMp3(utf8file,NULL)) pc->decodeType = DECODE_TYPE_MP3; #endif #ifdef HAVE_OGG - else if(isOgg(utf8file)) pc->decodeType = DECODE_TYPE_OGG; + else if(isOgg(utf8file,NULL)) pc->decodeType = DECODE_TYPE_OGG; #endif #ifdef HAVE_FLAC - else if(isFlac(utf8file)) pc->decodeType = DECODE_TYPE_FLAC; + else if(isFlac(utf8file,NULL)) pc->decodeType = DECODE_TYPE_FLAC; #endif #ifdef HAVE_AUDIOFILE - else if(isWave(utf8file)) pc->decodeType = DECODE_TYPE_AUDIOFILE; + else if(isWave(utf8file,NULL)) pc->decodeType = DECODE_TYPE_AUDIOFILE; #endif else { strncpy(pc->erroredFile,pc->file,MAXPATHLEN); @@ -317,16 +317,18 @@ int queueSong(char * utf8file) { if(0); #ifdef HAVE_MAD - else if(isMp3(utf8file)) pc->decodeType = DECODE_TYPE_MP3; + else if(isMp3(utf8file,NULL)) pc->decodeType = DECODE_TYPE_MP3; #endif #ifdef HAVE_OGG - else if(isOgg(utf8file)) pc->decodeType = DECODE_TYPE_OGG; + else if(isOgg(utf8file,NULL)) pc->decodeType = DECODE_TYPE_OGG; #endif #ifdef HAVE_FLAC - else if(isFlac(utf8file)) pc->decodeType = DECODE_TYPE_FLAC; + else if(isFlac(utf8file,NULL)) { + pc->decodeType = DECODE_TYPE_FLAC; + } #endif #ifdef HAVE_AUDIOFILE - else if(isWave(utf8file)) { + else if(isWave(utf8file,NULL)) { pc->decodeType = DECODE_TYPE_AUDIOFILE; } #endif |