[vlc-devel] [PATCH 01/16] video_output: rename variable for consistency with other similar calls

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


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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0233e214d9e..af8ca5c9752 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1080,9 +1080,9 @@ static int ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reuse,
 
             if (decoded) {
                 if (is_late_dropped && !decoded->b_force) {
-                    const vlc_tick_t date = vlc_tick_now();
+                    const vlc_tick_t system_now = vlc_tick_now();
                     const vlc_tick_t system_pts =
-                        vlc_clock_ConvertToSystem(sys->clock, date,
+                        vlc_clock_ConvertToSystem(sys->clock, system_now,
                                                   decoded->date, sys->rate);
 
                     vlc_tick_t late;
@@ -1095,7 +1095,7 @@ static int ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reuse,
                         late = 0;
                     }
                     else
-                        late = date - system_pts;
+                        late = system_now - system_pts;
 
                     vlc_tick_t late_threshold;
                     if (decoded->format.i_frame_rate && decoded->format.i_frame_rate_base)
-- 
2.26.2



More information about the vlc-devel mailing list