From ff706ee86d4ca1e31de6c6c322a3bedb819ead05 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 14 Dec 2010 22:31:39 +0200 Subject: core: avoid using sh_video->pts as "current pts" Add a new field "video_pts" to mpctx. It records the time of the last frame flipped visible on VO. Change various code which used sh_video->pts to use either the new field or get_current_time(mpctx). --- mp_core.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mp_core.h') diff --git a/mp_core.h b/mp_core.h index 206cbdacd3..1111ee49c4 100644 --- a/mp_core.h +++ b/mp_core.h @@ -148,6 +148,9 @@ typedef struct MPContext { // the same value if the status line is updated at a time where no new // video frame is shown. double last_av_difference; + /* timestamp of video frame currently visible on screen + * (or at least queued to be flipped by VO) */ + double video_pts; // Timestamp from the last time some timing functions read the // current time, in (occasionally wrapping) microseconds. Used -- cgit v1.2.3