assume all streams are mp3's, we'll need to open the streams before calling

the decoder routines to fetch the mime-type!

git-svn-id: https://svn.musicpd.org/mpd/trunk@1054 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-05-18 04:35:26 +00:00
parent 06422f729b
commit 45f8d47384
2 changed files with 3 additions and 8 deletions

View File

@@ -161,7 +161,8 @@ int playerInit() {
}
int playerGetDecodeType(char * utf8file) {
if(!isRemoteUrl(utf8file) && !isFile(utf8file,NULL)) return -1;
if(isRemoteUrl(utf8file)) return DECODE_TYPE_MP3;
if(!isFile(utf8file,NULL)) return -1;
#ifdef HAVE_MAD
if(hasMp3Suffix(utf8file)) return DECODE_TYPE_MP3;
#endif