[vlc-devel] [PATCH 3/6] vout: use the previous system time

Thomas Guillem thomas at gllm.fr
Thu Sep 5 13:40:00 CEST 2019


system_now was already set just before.
---
 src/video_output/video_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index eab4b6f3fa..b634df9f2f 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1244,7 +1244,7 @@ static int ThreadDisplayPicture(vout_thread_t *vout, vlc_tick_t *deadline)
     vlc_tick_t date_refresh = VLC_TICK_INVALID;
     if (sys->displayed.date != VLC_TICK_INVALID) {
         date_refresh = sys->displayed.date + VOUT_REDISPLAY_DELAY - render_delay;
-        refresh = date_refresh <= vlc_tick_now();
+        refresh = date_refresh <= system_now;
     }
     bool force_refresh = !drop_next_frame && refresh;
 
-- 
2.20.1



More information about the vlc-devel mailing list