aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-15 20:20:16 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-15 20:20:16 +0000
commitde2ae95defef080425e3578aaffba6c94abbb026 (patch)
treef3dce3d250f97c40e4faaf0c2530371892d31492
parent5839f0634193e137118f320f2bad3b01eb0af2cf (diff)
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
-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;