vlc | branch: master | Thomas Guillem <[email protected]> | Mon Sep  2 14:57:03 
2019 +0200| [bf339b692369e74da0ce2aff84da47f1f3980a1a] | committer: Thomas 
Guillem

vout: fix display date when forced

Vout display plugins were using a wrong date (in the future) when forced.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf339b692369e74da0ce2aff84da47f1f3980a1a
---

 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 aac3e45071..2f717a5640 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1141,7 +1141,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)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to