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 /player/command.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 'player/command.c')
-rw-r--r-- | player/command.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/player/command.c b/player/command.c index 6473de4af9..db368df079 100644 --- a/player/command.c +++ b/player/command.c @@ -583,14 +583,14 @@ static int mp_property_vo_drop_frame_count(void *ctx, struct m_property *prop, return m_property_int_ro(action, arg, vo_get_drop_count(mpctx->video_out)); } -static int mp_property_vo_missed_frame_count(void *ctx, struct m_property *prop, - int action, void *arg) +static int mp_property_vo_delayed_frame_count(void *ctx, struct m_property *prop, + int action, void *arg) { MPContext *mpctx = ctx; if (!mpctx->d_video) return M_PROPERTY_UNAVAILABLE; - return m_property_int_ro(action, arg, vo_get_missed_count(mpctx->video_out)); + return m_property_int_ro(action, arg, vo_get_delayed_count(mpctx->video_out)); } /// Current position in percent (RW) @@ -3395,7 +3395,7 @@ static const struct m_property mp_properties[] = { {"drop-frame-count", mp_property_drop_frame_cnt}, {"mistimed-frame-count", mp_property_mistimed_frame_count}, {"vo-drop-frame-count", mp_property_vo_drop_frame_count}, - {"vo-missed-frame-count", mp_property_vo_missed_frame_count}, + {"vo-delayed-frame-count", mp_property_vo_delayed_frame_count}, {"percent-pos", mp_property_percent_pos}, {"time-start", mp_property_time_start}, {"time-pos", mp_property_time_pos}, @@ -3612,7 +3612,7 @@ static const char *const *const mp_event_property_change[] = { "percent-pos", "time-remaining", "playtime-remaining", "playback-time", "estimated-vf-fps", "drop-frame-count", "vo-drop-frame-count", "total-avsync-change", "audio-speed-correction", "video-speed-correction", - "vo-missed-frame-count", "mistimed-frame-count"), + "vo-delayed-frame-count", "mistimed-frame-count"), E(MPV_EVENT_VIDEO_RECONFIG, "video-out-params", "video-params", "video-format", "video-codec", "video-bitrate", "dwidth", "dheight", "width", "height", "fps", "aspect", "vo-configured", "current-vo", |