summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-31 16:47:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-31 16:47:53 +0000
commit8fb7d45abd13b0d8a427f44f19e338d8b4fb9cc0 (patch)
tree7f51f8846d515dcba58c789ef95eac745ea04be2
parentb78313acd8890b2f2181efb92273ae80264a38c1 (diff)
downloadmpv-8fb7d45abd13b0d8a427f44f19e338d8b4fb9cc0.tar.bz2
mpv-8fb7d45abd13b0d8a427f44f19e338d8b4fb9cc0.tar.xz
Make code slightly more readable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30148 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/http.c b/stream/http.c
index d81491c6b9..117c531e4c 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -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