From 423a75250f4fa66abf8be7b48586e2e5fc1212e9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Aug 2012 00:39:49 +0200 Subject: mplayer: make display of playback status more uniform The code to format the playback time was duplicated a few times. There were also minor differences in how the time is formatted. Remove most of these differences. This also fixes a bug in the output of the osd_show_progression command, introduced in 74e7a1e937c10d9f4. There was some logic to display the percent position in the OSD status for a short while after seeking. Remove that logic and always display the percent position. Make --osd-fractions a flag option. This removes the ability to show the number of frames played since the start of the current second (i.e. the fraction of the time was turned into a frame number). This features wasn't so great anyway, because modern video file formats don't always have a (valid) FPS set, and could lead to inaccurate display. Still to sort out: Unfortunately, the terminal status is still formatted differently from the OSD, and even worse, it has a completely different time source. Not sure if I like how the status line looks now (it's a bit "full"?). Maybe it will be changed again later. --- mp_osd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mp_osd.h') diff --git a/mp_osd.h b/mp_osd.h index 6c80ea3214..eb1c3eae07 100644 --- a/mp_osd.h +++ b/mp_osd.h @@ -40,5 +40,6 @@ void set_osd_bar(struct MPContext *mpctx, int type,const char* name,double min,d void set_osd_msg(int id, int level, int time, const char* fmt, ...); void set_osd_tmsg(int id, int level, int time, const char* fmt, ...); void rm_osd_msg(int id); +void mp_show_osd_progression(struct MPContext *mpctx); #endif /* MPLAYER_MP_OSD_H */ -- cgit v1.2.3