[vlc-devel] [PATCH 1/2] vout: fix display date when forced

Thomas Guillem thomas at gllm.fr
Mon Sep 2 15:45:45 CEST 2019


Vout display plugins were using a wrong date (in the future) when forced.
---
 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 ef0d9488ae..8360a83019 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1147,7 +1147,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
 
     system_now = vlc_tick_now();
     const vlc_tick_t pts = todisplay->date;
-    const vlc_tick_t system_pts =
+    vlc_tick_t system_pts = is_forced ? system_now :
         vlc_clock_ConvertToSystem(sys->clock, system_now, pts, sys->rate);
 
     if (vd->prepare != NULL)
-- 
2.20.1



More information about the vlc-devel mailing list