yes! rudimentary stream playing for mp3's!

be gentle

git-svn-id: https://svn.musicpd.org/mpd/trunk@1051 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-05-18 03:37:55 +00:00
parent aed844a67d
commit 746e7477e0
9 changed files with 57 additions and 36 deletions

View File

@@ -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++;
}