summaryrefslogtreecommitdiffstats
path: root/stream/http.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-15 20:20:16 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-15 20:20:16 +0000
commitde2ae95defef080425e3578aaffba6c94abbb026 (patch)
treef3dce3d250f97c40e4faaf0c2530371892d31492 /stream/http.c
parent5839f0634193e137118f320f2bad3b01eb0af2cf (diff)
downloadmpv-de2ae95defef080425e3578aaffba6c94abbb026.tar.bz2
mpv-de2ae95defef080425e3578aaffba6c94abbb026.tar.xz
Detect IceCast also by Icy-MetaInt header part in http_streaming_start(),
as in fixup_open() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26000 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/http.c')
-rw-r--r--stream/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/http.c b/stream/http.c
index ac484f84d9..4e02d63d73 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -756,7 +756,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
}
// Check if the response is an ICY status_code reason_phrase
- if( !strcasecmp(http_hdr->protocol, "ICY") ) {
+ if( !strcasecmp(http_hdr->protocol, "ICY") ||
+ http_get_field(http_hdr, "Icy-MetaInt") ) {
switch( http_hdr->status_code ) {
case 200: { // OK
char *field_data = NULL;