diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-25 20:52:28 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-25 20:52:28 +0000 |
commit | 61a88f1692304d12c8bad0cb7335d20c65ed8b94 (patch) | |
tree | 3f5842892ff198a47f8e579076c5a3ca598066c0 | |
parent | fececcea3c6e492d9d9d828d64f012bb1fdf793c (diff) | |
download | mpd-61a88f1692304d12c8bad0cb7335d20c65ed8b94.tar.gz mpd-61a88f1692304d12c8bad0cb7335d20c65ed8b94.tar.xz mpd-61a88f1692304d12c8bad0cb7335d20c65ed8b94.zip |
stream name maybe icy-name or ice-name in the http headers
git-svn-id: https://svn.musicpd.org/mpd/trunk@2339 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/inputStream_http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c index 9a32b269d..2e0755d96 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -570,7 +570,9 @@ static int getHTTPHello(InputStream * inStream) { else if(0 == strncmp(cur, "\r\nicy-metaint:", 14)) { data->icyMetaint = atoi(cur+14); } - else if(0 == strncmp(cur, "\r\nicy-name:", 11)) { + else if(0 == strncmp(cur, "\r\nicy-name:", 11) || + 0 == strncmp(cur, "\r\nice-name:", 11)) + { int incr = 11; char * temp = strstr(cur+incr,"\r\n"); if(!temp) break; |