[MPlayer-cvslog] r30148 - trunk/stream/http.c
reimar
subversion at mplayerhq.hu
Thu Dec 31 17:47:53 CET 2009
Author: reimar
Date: Thu Dec 31 17:47:53 2009
New Revision: 30148
Log:
Make code slightly more readable.
Modified:
trunk/stream/http.c
Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c Thu Dec 31 17:46:44 2009 (r30147)
+++ trunk/stream/http.c Thu Dec 31 17:47:53 2009 (r30148)
@@ -767,9 +767,9 @@ static int http_streaming_start(stream_t
// 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
More information about the MPlayer-cvslog
mailing list