# HG changeset patch # User reimar # Date 1294854691 0 # Node ID b171c744cd06b70fd0facca5d45b486fce6ee2ad # Parent 8faab59f3d3ed224765d2921326992fc3fd56f1a Add MakeMKV to list of webservers always supporting ranges even when they claim otherwise. diff -r 8faab59f3d3e -r b171c744cd06 stream/http.c --- a/stream/http.c Tue Jan 11 19:46:10 2011 +0000 +++ b/stream/http.c Wed Jan 12 17:51:31 2011 +0000 @@ -740,8 +740,11 @@ 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))) { + // 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);