[vlc-commits] video_output: use VLC_TICK_0 instead of hardcoded value 1

Steve Lhomme git at videolan.org
Tue Oct 20 11:02:57 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 16 13:33:00 2020 +0200| [dab3836a24b68dd721c9aee1dde03ba768b99430] | committer: Steve Lhomme

video_output: use VLC_TICK_0 instead of hardcoded value 1

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

 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 cb6bf795f0..d970ddae9f 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1251,7 +1251,7 @@ static int ThreadDisplayRenderPicture(vout_thread_sys_t *vout, bool is_forced)
         render_subtitle_date = sys->pause.date;
     else
     {
-        render_subtitle_date = filtered->date <= 1 ? system_now :
+        render_subtitle_date = filtered->date <= VLC_TICK_0 ? system_now :
             vlc_clock_ConvertToSystem(sys->clock, system_now, filtered->date,
                                       sys->rate);
 



More information about the vlc-commits mailing list