From 9a7fc55607438b60f25c52b0a16341056a99f882 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Mar 2015 23:41:25 +0100 Subject: command: display-fps is the display FPS as assumed by the VO Requested change in behavior. Note that we set the assumed "infinite" display_fps to 1e6, which conveniently lets vo_get_vsync_interval() return a dummy value of 1, which can be easily checked against, and still avoids doing math with float INFs. --- video/out/vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/vo.c b/video/out/vo.c index 55ff0b7702..fe53102577 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -312,7 +312,7 @@ static void update_display_fps(struct vo *vo) pthread_mutex_unlock(&in->lock); - double display_fps = 1000.0; // assume infinite if unset + double display_fps = 1e6; // assume infinite if unset if (vo->global->opts->frame_drop_fps > 0) { display_fps = vo->global->opts->frame_drop_fps; } else { -- cgit v1.2.3