diff command.c @ 32352:76f94c00a69f

1000l, %lf is not valid format string for printf (only for scanf) and actually breaks on Windows. Fix all occurences. Fixes bug 1810.
author reimar
date Mon, 04 Oct 2010 06:40:32 +0000
parents ef21cbba62ee
children 7fd2de8d6f32
line wrap: on
line diff
--- a/command.c	Sun Oct 03 20:49:50 2010 +0000
+++ b/command.c	Mon Oct 04 06:40:32 2010 +0000
@@ -93,7 +93,7 @@
     *dy = (double) iy / (double) vo_dheight;
 
     mp_msg(MSGT_CPLAYER, MSGL_V,
-           "\r\nrescaled coordinates: %.3lf, %.3lf, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n",
+           "\r\nrescaled coordinates: %.3f, %.3f, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n",
            *dx, *dy, vo_screenwidth, vo_screenheight, vo_dwidth,
            vo_dheight, vo_fs);
 }
@@ -3108,7 +3108,7 @@
             break;
 
         case MP_CMD_GET_TIME_LENGTH:{
-                mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2lf\n",
+                mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2f\n",
                        demuxer_get_time_length(mpctx->demuxer));
             }
             break;