[MPlayer-cygwin] new status line + win2k cmd = crap
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Nov 12 17:26:49 CET 2004
Hi,
> anyone else having probs? my cmd is 80w 48h
it's definitely 80 width?
> and mplayers' status keeps spitting out lines instead of a nice
> refreshing bar. (using MPlayer dev-CVS-041023-09:31-3.2.3)
> no problems with older versions...
I feared something like this... On some systems the cr seem so count as
a character so you actually can get only 79 chars on one line :-(.
Please try the attached patch.
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.809
diff -u -r1.809 mplayer.c
--- mplayer.c 9 Nov 2004 20:09:26 -0000 1.809
+++ mplayer.c 12 Nov 2004 16:26:28 -0000
@@ -820,6 +820,7 @@
width = screen_width;
else
width = 80;
+ width--;
line = malloc(width + 1); // one additional for terminating null
// Audio time
More information about the MPlayer-cygwin
mailing list