summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index b8d1bbf9d4..fcf3c085d6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -962,9 +962,8 @@ static void print_status(float a_pos, float a_v, float corr)
saddf(line, &pos, width, "%4.2fx ", playback_speed);
// end
- memset(&line[pos], ' ', width - pos);
- line[width] = 0;
- mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s\r", line);
+ line[pos] = 0;
+ mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line);
free(line);
}