From 72bdc5d3af22735753e1487fd251db09f8a20194 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 26 Feb 2013 00:38:36 +0100 Subject: core: use playback time to determine playback percent position The percent position is used for the OSD, the status line, and for the OSD bar (shown on seeks). By default, the PTS of the last demuxed packet was used to calculate it. This led to a "jumpy" display when the percentage value (casted to int) was changing. The reasons for this were the presence of video frame reordering (packet PTS is not monotonic), or getting PTS values from different streams (like audio/subs). Since these rely on PTS values and correct file durations anyway, simplify it by calculating it with the current playback position in mplayer.c instead. --- demux/demux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/demux.h') diff --git a/demux/demux.h b/demux/demux.h index 3af759316d..554730d59f 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -91,7 +91,7 @@ enum timestamp_type { #define DEMUXER_CTRL_OK 1 #define DEMUXER_CTRL_GUESS 2 #define DEMUXER_CTRL_GET_TIME_LENGTH 10 -#define DEMUXER_CTRL_GET_PERCENT_POS 11 +#define DEMUXER_CTRL_GET_START_TIME 11 #define DEMUXER_CTRL_SWITCH_AUDIO 12 #define DEMUXER_CTRL_RESYNC 13 #define DEMUXER_CTRL_SWITCH_VIDEO 14 -- cgit v1.2.3