[vlc-commits] vout: use vlc_clock_UpdateVideo()

Thomas Guillem git at videolan.org
Mon Sep 23 13:36:12 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Sep  6 09:10:22 2019 +0200| [c19480c740afed3f22570c13ed9ec3b9f8159417] | committer: Thomas Guillem

vout: use vlc_clock_UpdateVideo()

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

 src/video_output/video_output.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0aebe05137..17663f7cdb 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1176,6 +1176,9 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
         is_forced = true;
     }
 
+    const unsigned frame_rate = todisplay->format.i_frame_rate;
+    const unsigned frame_rate_base = todisplay->format.i_frame_rate_base;
+
     if (vd->prepare != NULL)
         vd->prepare(vd, todisplay, do_dr_spu ? subpic : NULL, system_pts);
 
@@ -1207,7 +1210,8 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
             /* Don't touch system_pts. Tell the clock that the pts was rendered
              * at the expected date */
         }
-        vlc_clock_Update(sys->clock, system_pts, pts, sys->rate);
+        vlc_clock_UpdateVideo(sys->clock, system_pts, pts, sys->rate,
+                              frame_rate, frame_rate_base);
     }
     sys->displayed.date = system_pts;
 



More information about the vlc-commits mailing list