[vlc-devel] [PATCH 03/16] video_output: use VLC_TICK_0 instead of hardcoded value 1

Steve Lhomme robux4 at ycbcr.xyz
Fri Oct 16 16:26:34 CEST 2020


---
 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 cb6bf795f09..d970ddae9fe 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);
 
-- 
2.26.2



More information about the vlc-devel mailing list