[MPlayer-dev-eng] MPlayer-1.0pre6a http streaming seek bug
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jan 16 11:14:00 CET 2005
Hi,
On Sun, Jan 16, 2005 at 10:54:08AM +0100, Moritz Bunkus wrote:
> > Wtf??? Who did that crap??
>
> Microsoft?
A almost expected that...
> > Isn't there a type specifier that works on all platforms?
>
> Nope.
Ok, how about the attached version (another possibility would be to
truncate to int, but I think that's not a good idea here).
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libmpdemux/network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.108
diff -u -r1.108 network.c
--- libmpdemux/network.c 28 Dec 2004 19:59:56 -0000 1.108
+++ libmpdemux/network.c 16 Jan 2005 10:12:32 -0000
@@ -460,7 +460,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);
}
More information about the MPlayer-dev-eng
mailing list