Mercurial > mplayer.hg
changeset 15812:6a9db8a1a5bd
fix seeking over http for files larger 2 GB
author | reimar |
---|---|
date | Fri, 24 Jun 2005 11:01:00 +0000 |
parents | 9b4bbb6098f6 |
children | 0f5d6aad2554 |
files | libmpdemux/network.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/network.c Fri Jun 24 10:50:53 2005 +0000 +++ b/libmpdemux/network.c Fri Jun 24 11:01:00 2005 +0000 @@ -402,7 +402,11 @@ if(pos>0) { // Extend http_send_request with possibility to do partial content retrieval - snprintf(str, 256, "Range: bytes=%d-", pos); +#ifdef __MINGW32__ + snprintf(str, 256, "Range: bytes=%I64d-", (int64_t)pos); +#else + snprintf(str, 256, "Range: bytes=%lld-", (long long)pos); +#endif http_set_field(http_hdr, str); }