comparison 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
comparison
equal deleted inserted replaced
32351:7727a2450505 32352:76f94c00a69f
91 91
92 *dx = (double) ix / (double) vo_dwidth; 92 *dx = (double) ix / (double) vo_dwidth;
93 *dy = (double) iy / (double) vo_dheight; 93 *dy = (double) iy / (double) vo_dheight;
94 94
95 mp_msg(MSGT_CPLAYER, MSGL_V, 95 mp_msg(MSGT_CPLAYER, MSGL_V,
96 "\r\nrescaled coordinates: %.3lf, %.3lf, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n", 96 "\r\nrescaled coordinates: %.3f, %.3f, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n",
97 *dx, *dy, vo_screenwidth, vo_screenheight, vo_dwidth, 97 *dx, *dy, vo_screenwidth, vo_screenheight, vo_dwidth,
98 vo_dheight, vo_fs); 98 vo_dheight, vo_fs);
99 } 99 }
100 100
101 static int sub_pos_by_source(MPContext *mpctx, int src) 101 static int sub_pos_by_source(MPContext *mpctx, int src)
3106 break; 3106 break;
3107 set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i); 3107 set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i);
3108 break; 3108 break;
3109 3109
3110 case MP_CMD_GET_TIME_LENGTH:{ 3110 case MP_CMD_GET_TIME_LENGTH:{
3111 mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2lf\n", 3111 mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2f\n",
3112 demuxer_get_time_length(mpctx->demuxer)); 3112 demuxer_get_time_length(mpctx->demuxer));
3113 } 3113 }
3114 break; 3114 break;
3115 3115
3116 case MP_CMD_GET_FILENAME:{ 3116 case MP_CMD_GET_FILENAME:{