diff options
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -44,7 +44,6 @@ char * dupAndStripPlaylistSuffix(char * file) { int isRemoteUrl(char * url) { char * prefixes[] = { "http://", - "ftp://", NULL }; @@ -53,12 +52,12 @@ int isRemoteUrl(char * url) { while(*urlPrefixes) { if(strncmp(*urlPrefixes,url,strlen(*urlPrefixes)) == 0) { #ifdef HAVE_MAD - if(hasMp3Suffix(*urlPrefixes)) return 1; + if(hasMp3Suffix(url)) return 1; #endif #ifdef HAVE_OGG - if(hasOggSuffix(*urlPrefixes)) return 1; - return 0; + if(hasOggSuffix(url)) return 1; #endif + return 0; } urlPrefixes++; } |