aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c8
-rw-r--r--src/player.c3
2 files changed, 3 insertions, 8 deletions
diff --git a/src/ls.c b/src/ls.c
index 1b5c36015..f52bff969 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -51,13 +51,7 @@ int isRemoteUrl(char * url) {
while(*urlPrefixes) {
if(strncmp(*urlPrefixes,url,strlen(*urlPrefixes)) == 0) {
-#ifdef HAVE_MAD
- if(hasMp3Suffix(url)) return 1;
-#endif
-#ifdef HAVE_OGG
- if(hasOggSuffix(url)) return 1;
-#endif
- return 0;
+ return 1;
}
urlPrefixes++;
}
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