mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 01:46:16 +00:00
Make code slightly more readable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30148 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b78313acd8
commit
8fb7d45abd
@ -767,9 +767,9 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
|
||||
|
||||
// Check if we can make partial content requests and thus seek in http-streams
|
||||
if( http_hdr!=NULL && http_hdr->status_code==200 ) {
|
||||
char *accept_ranges;
|
||||
const char *accept_ranges = http_get_field(http_hdr,"Accept-Ranges");
|
||||
const char *server = http_get_field(http_hdr, "Server");
|
||||
if( (accept_ranges = http_get_field(http_hdr,"Accept-Ranges")) != NULL )
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user