diff options
author | 2005-07-24 12:22:30 +0000 | |
---|---|---|
committer | 2005-07-24 12:22:30 +0000 | |
commit | e23ff6c88cc69764d2feb4ea8b6d4968efb1237e (patch) | |
tree | 20ba1b764f7aeec00eac699eba01374528a24844 | |
parent | a6fa1f8e8ae13788154643c35f8dcb5cc30cd0e5 (diff) |
Some ICY servers (e.g. http://broadcast.spnet.net:8000/darikhigh) do not set
the protocol correctly, so look for icy-metaint in the response instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16079 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/http.c b/libmpdemux/http.c index 89d6fda90b..a1adc38803 100644 --- a/libmpdemux/http.c +++ b/libmpdemux/http.c @@ -841,7 +841,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) { static int fixup_open(stream_t *stream,int seekable) { HTTP_header_t *http_hdr = stream->streaming_ctrl->data; - int is_icy = http_hdr && strcasecmp(http_hdr->protocol, "ICY") == 0; + int is_icy = http_hdr && http_get_field(http_hdr, "Icy-MetaInt"); char *content_type = http_get_field( http_hdr, "Content-Type" ); int is_ultravox = strcasecmp(stream->streaming_ctrl->url->protocol, "unsv") == 0; |