[vlc-devel] [PATCH 4/6] vout: fix display date when forced

Thomas Guillem thomas at gllm.fr
Thu Sep 5 13:40:01 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 b634df9f2f..2c63624808 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1152,7 +1152,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