aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-18 04:35:26 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-18 04:35:26 +0000
commit45f8d47384934582f4e2e0ff5321b710ea9c34da (patch)
tree2c734d6985b8b1a8713d0dd4455655617bb392c2 /src/player.c
parent06422f729b8f6937d33d7c6c9156f4f3a5fdc731 (diff)
downloadmpd-45f8d47384934582f4e2e0ff5321b710ea9c34da.tar.gz
mpd-45f8d47384934582f4e2e0ff5321b710ea9c34da.tar.xz
mpd-45f8d47384934582f4e2e0ff5321b710ea9c34da.zip
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
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index a764dd28a..7f28670bf 100644
--- a/src/player.c
+++ b/src/player.c
@@ -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