mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 12:11:52 +00:00
fix seeking over http for files larger 2 GB
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15813 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d22ae4a4d9
commit
d8d2b12059
@ -402,7 +402,11 @@ http_send_request( URL_t *url, off_t pos ) {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user