[vlc-devel] [PATCH V3 07/19] vout: use vlc_clock_UpdateVideo()
Thomas Guillem
thomas at gllm.fr
Fri Sep 6 17:20:37 CEST 2019
---
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 d9d6dce94c..e5ecae9762 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1187,6 +1187,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);
@@ -1218,7 +1221,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;
--
2.20.1
More information about the vlc-devel
mailing list