[vlc-commits] [Git][videolan/vlc][master] vout: update system_pts on clock-based wait

Romain Vimont (@rom1v) gitlab at videolan.org
Fri Jul 16 06:34:23 UTC 2021



Romain Vimont pushed to branch master at VideoLAN / VLC


Commits:
207fcd92 by Romain Vimont at 2021-07-16T06:23:19+00:00
vout: update system_pts on clock-based wait

The wait duration may vary on clock state changes. The display date must
be updated accordingly, and the clock update must use the real date
(even if it has no practical impact, since video is never the master
clock).

- - - - -


1 changed file:

- src/video_output/video_output.c


Changes:

=====================================
src/video_output/video_output.c
=====================================
@@ -1345,13 +1345,11 @@ static int RenderPicture(vout_thread_sys_t *sys, bool render_now)
                         deadline = max_deadline;
                 }
 
+                system_pts = deadline;
                 timed_out = vlc_clock_Wait(sys->clock, deadline);
             };
 
             vlc_clock_Unlock(sys->clock);
-
-            /* Don't touch system_pts. Tell the clock that the pts was rendered
-             * at the expected date */
         }
         sys->displayed.date = system_pts;
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/207fcd92054dfff8e2bd6380ce9dcfa0fb99cdbd

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/207fcd92054dfff8e2bd6380ce9dcfa0fb99cdbd
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list