changeset 32698:b171c744cd06

Add MakeMKV to list of webservers always supporting ranges even when they claim otherwise.
author reimar
date Wed, 12 Jan 2011 17:51:31 +0000
parents 8faab59f3d3e
children 6d0b010a2bb7
files stream/http.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);