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
This commit is contained in:
reimar
2005-07-24 12:22:30 +00:00
parent a6fa1f8e8a
commit e23ff6c88c
+1 -1
View File
@@ -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;