summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2015-02-09 00:05:09 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-16 18:13:22 +0900
commitf4263a811f434540ce51c85f27b968e059fb5299 (patch)
treebd882166d37ff22448eb94816d54d17281ece227 /player
parenta6bf8e7c3621b9b68da89aebe2a2f779b1968a52 (diff)
downloadmpv-f4263a811f434540ce51c85f27b968e059fb5299.tar.bz2
mpv-f4263a811f434540ce51c85f27b968e059fb5299.tar.xz
vf_vapoursynth: add display refresh rate property
This value is not necessarily trustworthy (it might change) and can be 0. (cherry picked from commit 349067a6ab2d03024b3e984e80314f303dd14432)
Diffstat (limited to 'player')
-rw-r--r--player/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c
index 29dcb3b066..a13b2696ed 100644
--- a/player/video.c
+++ b/player/video.c
@@ -180,6 +180,8 @@ static void recreate_video_filters(struct MPContext *mpctx)
d_video->vfilter->wakeup_callback = wakeup_playloop;
d_video->vfilter->wakeup_callback_ctx = mpctx;
d_video->vfilter->container_fps = d_video->fps;
+ vo_control(mpctx->video_out, VOCTRL_GET_DISPLAY_FPS,
+ &d_video->vfilter->display_fps);
vf_append_filter_list(d_video->vfilter, opts->vf_settings);