[vlc-commits] video_output: rename variable for consistency with other similar calls

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 16 11:41:22 2020 +0200| [753626acd59a3c2c40c7ca4336efbcb079cfc422] | committer: Steve Lhomme

video_output: rename variable for consistency with other similar calls

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

 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 0233e214d9..af8ca5c975 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)



More information about the vlc-commits mailing list