diff options
author | wm4 <wm4@nowhere> | 2015-11-13 22:41:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-13 22:41:41 +0100 |
commit | f0feea55918e133ba3e6871e2bb1cbd9610cb2d1 (patch) | |
tree | 2a6d808fab4b5b3de03f7588037b2dd8b2408ac2 /video/out/vo.c | |
parent | def87f1e5f693ed24b5c8f62e8e86dbaebe4d993 (diff) | |
download | mpv-f0feea55918e133ba3e6871e2bb1cbd9610cb2d1.tar.bz2 mpv-f0feea55918e133ba3e6871e2bb1cbd9610cb2d1.tar.xz |
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.)
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |