diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-30 20:50:03 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-30 20:50:03 +0000 |
commit | c97d19eb4978419807cce096a878c4c0cf55b0bb (patch) | |
tree | 71d92a52d1a4f9ca7eb2486e589b1b15668c87af /stream/http.c | |
parent | e25e6ec309e08cbf022adbf6027b259fbe5487db (diff) | |
download | mpv-c97d19eb4978419807cce096a878c4c0cf55b0bb.tar.bz2 mpv-c97d19eb4978419807cce096a878c4c0cf55b0bb.tar.xz |
Add a hack for broken youtube servers not returning Accept-Ranges.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30145 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/http.c')
-rw-r--r-- | stream/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/http.c b/stream/http.c index 3ebfe03d05..d806632117 100644 --- a/stream/http.c +++ b/stream/http.c @@ -770,6 +770,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) { 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); |