diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-18 03:37:55 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-18 03:37:55 +0000 |
commit | 746e7477e047a78296fc60347448720add025bce (patch) | |
tree | d54ca55fab5f86b789fbc524643583e4258cd294 /src/ls.c | |
parent | aed844a67df54d54f4765413077af0651378bb81 (diff) | |
download | mpd-746e7477e047a78296fc60347448720add025bce.tar.gz mpd-746e7477e047a78296fc60347448720add025bce.tar.xz mpd-746e7477e047a78296fc60347448720add025bce.zip |
yes! rudimentary stream playing for mp3's!
be gentle
git-svn-id: https://svn.musicpd.org/mpd/trunk@1051 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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++; } |