# HG changeset patch # User reimar # Date 1262206203 0 # Node ID f7af93ece9762f6b817ab63073704820550c25c6 # Parent 9b479e2f365d9b46cc93d5f5a2064af9132ca918 Add a hack for broken youtube servers not returning Accept-Ranges. diff -r 9b479e2f365d -r f7af93ece976 stream/http.c --- a/stream/http.c Wed Dec 30 19:37:19 2009 +0000 +++ b/stream/http.c Wed Dec 30 20:50:03 2009 +0000 @@ -770,6 +770,8 @@ char *accept_ranges; if( (accept_ranges = http_get_field(http_hdr,"Accept-Ranges")) != NULL ) seekable = strncmp(accept_ranges,"bytes",5)==0; + else if (strcmp(http_get_field(http_hdr, "Server"), "gvs 1.0") == 0) + seekable = 1; // HACK for youtube incorrectly claiming not to support seeking } print_icy_metadata(http_hdr);