Mercurial > mplayer.hg
comparison libmpdemux/network.c @ 15812:6a9db8a1a5bd
fix seeking over http for files larger 2 GB
author | reimar |
---|---|
date | Fri, 24 Jun 2005 11:01:00 +0000 |
parents | 281d155fb37f |
children | 341bfd887e36 |
comparison
equal
deleted
inserted
replaced
15811:9b4bbb6098f6 | 15812:6a9db8a1a5bd |
---|---|
400 else | 400 else |
401 http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION); | 401 http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION); |
402 | 402 |
403 if(pos>0) { | 403 if(pos>0) { |
404 // Extend http_send_request with possibility to do partial content retrieval | 404 // Extend http_send_request with possibility to do partial content retrieval |
405 snprintf(str, 256, "Range: bytes=%d-", pos); | 405 #ifdef __MINGW32__ |
406 snprintf(str, 256, "Range: bytes=%I64d-", (int64_t)pos); | |
407 #else | |
408 snprintf(str, 256, "Range: bytes=%lld-", (long long)pos); | |
409 #endif | |
406 http_set_field(http_hdr, str); | 410 http_set_field(http_hdr, str); |
407 } | 411 } |
408 | 412 |
409 if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url ); | 413 if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url ); |
410 | 414 |