From 9cc34ca725eae627d912245e4cca432f317f62d1 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 12 Jan 2011 17:51:31 +0000 Subject: [PATCH] stream/http: assume MakeMKV webservers always support ranges Add MakeMKV to list of webservers always supporting ranges even when they claim otherwise. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32785 b3059339-0415-0410-9bf9-f77b7e298cf2 Fix hack to check for MakeMKV server being inverted. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32807 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/http.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stream/http.c b/stream/http.c index 65abe90677..9ef5ae8446 100644 --- a/stream/http.c +++ b/stream/http.c @@ -742,8 +742,12 @@ static int http_streaming_start(stream_t *stream, int* file_format) { const char *server = http_get_field(http_hdr, "Server"); if (accept_ranges) seekable = strncmp(accept_ranges,"bytes",5)==0; - else if (server && strcmp(server, "gvs 1.0") == 0) - seekable = 1; // HACK for youtube incorrectly claiming not to support seeking + else if (server && (strcmp(server, "gvs 1.0") == 0 || + strncmp(server, "MakeMKV", 7) == 0)) { + // HACK for youtube and MakeMKV incorrectly claiming not to support seeking + mp_msg(MSGT_NETWORK, MSGL_WARN, "Broken webserver, incorrectly claims to not support Accept-Ranges\n"); + seekable = 1; + } } print_icy_metadata(http_hdr);