summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-01-12 17:51:31 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 16:03:10 +0200
commit9cc34ca725eae627d912245e4cca432f317f62d1 (patch)
treea5f1dcb76747c3fa4559d4bc23f212470f679978
parent65cc2366a34f3e572be0fa59e7d70f8b57e526ea (diff)
downloadmpv-9cc34ca725eae627d912245e4cca432f317f62d1.tar.bz2
mpv-9cc34ca725eae627d912245e4cca432f317f62d1.tar.xz
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
-rw-r--r--stream/http.c8
1 files 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);