diff options
author | wm4 <wm4@nowhere> | 2015-03-13 18:48:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-13 18:48:14 +0100 |
commit | d64c9d8e8ca1570195df670dc194ef6944903852 (patch) | |
tree | bb9bf0c700b43ad93976d2308a3b7eeb59146693 | |
parent | f881a520fd7381a01232d8560a2825a66020974c (diff) |
vo: make sure display-fps is up-to-date
Sigh.
-rw-r--r-- | video/out/vo.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 3b7d9aa9a1..a99e9f69f4 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -321,8 +321,14 @@ static void update_display_fps(struct vo *vo) pthread_mutex_lock(&in->lock); - in->display_fps = display_fps; - MP_VERBOSE(vo, "Assuming %f FPS for framedrop.\n", display_fps); + if (in->display_fps != display_fps) { + in->display_fps = display_fps; + MP_VERBOSE(vo, "Assuming %f FPS for framedrop.\n", display_fps); + + // make sure to update the player + in->queued_events |= VO_EVENT_WIN_STATE; + mp_input_wakeup(vo->input_ctx); + } } pthread_mutex_unlock(&in->lock); } |