From f0feea55918e133ba3e6871e2bb1cbd9610cb2d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Nov 2015 22:41:41 +0100 Subject: command: rename vo-missed-frame-count property "Missed" implies the frame was dropped, but what really happens is that the following frame will be shown later than intended (due to the current frame skipping a vsync). (As of this commit, this property is still inactive and always returns 0. See git blame for details.) --- video/out/vo.c | 8 ++++---- video/out/vo.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'video') diff --git a/video/out/vo.c b/video/out/vo.c index 35c583b35f..81537e80d9 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -144,7 +144,7 @@ struct vo_internal { int64_t flip_queue_offset; // queue flip events at most this much in advance - int64_t missed_count; + int64_t delayed_count; int64_t drop_count; bool dropped_frame; // the previous frame was dropped @@ -423,7 +423,7 @@ static void forget_frames(struct vo *vo) in->hasframe = false; in->hasframe_rendered = false; in->drop_count = 0; - in->missed_count = 0; + in->delayed_count = 0; talloc_free(in->frame_queued); in->frame_queued = NULL; // don't unref current_frame; we always want to be able to redraw it @@ -1050,11 +1050,11 @@ int64_t vo_get_next_frame_start_time(struct vo *vo) return res; } -int64_t vo_get_missed_count(struct vo *vo) +int64_t vo_get_delayed_count(struct vo *vo) { struct vo_internal *in = vo->in; pthread_mutex_lock(&in->lock); - int64_t res = vo->in->missed_count; + int64_t res = vo->in->delayed_count; pthread_mutex_unlock(&in->lock); return res; } diff --git a/video/out/vo.h b/video/out/vo.h index 213b287ab2..c7bcccd778 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -332,7 +332,7 @@ void vo_destroy(struct vo *vo); void vo_set_paused(struct vo *vo, bool paused); int64_t vo_get_drop_count(struct vo *vo); void vo_increment_drop_count(struct vo *vo, int64_t n); -int64_t vo_get_missed_count(struct vo *vo); +int64_t vo_get_delayed_count(struct vo *vo); void vo_query_formats(struct vo *vo, uint8_t *list); void vo_event(struct vo *vo, int event); int vo_query_and_reset_events(struct vo *vo, int events); -- cgit v1.2.3