summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/command.c b/player/command.c
index db368df079..e3b8feab98 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2687,10 +2687,10 @@ static int mp_property_vf_fps(void *ctx, struct m_property *prop,
MPContext *mpctx = ctx;
if (!mpctx->d_video)
return M_PROPERTY_UNAVAILABLE;
- double res = stabilize_frame_duration(mpctx, false);
- if (res <= 0)
+ double avg = calc_average_frame_duration(mpctx);
+ if (avg <= 0)
return M_PROPERTY_UNAVAILABLE;
- return m_property_double_ro(action, arg, 1 / res);
+ return m_property_double_ro(action, arg, 1.0 / avg);
}
/// Video aspect (RO)