summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-13 22:41:41 +0100
committerwm4 <wm4@nowhere>2015-11-13 22:41:41 +0100
commitf0feea55918e133ba3e6871e2bb1cbd9610cb2d1 (patch)
tree2a6d808fab4b5b3de03f7588037b2dd8b2408ac2 /video
parentdef87f1e5f693ed24b5c8f62e8e86dbaebe4d993 (diff)
downloadmpv-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')
-rw-r--r--video/out/vo.c8
-rw-r--r--video/out/vo.h2
2 files changed, 5 insertions, 5 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;
}
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);