[vlc-commits] video_output: add missing else in next_system_pts check

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 16 14:23:26 2020 +0200| [324f0e20ba2e0a4ae19334e2899f5cf9d379c6d9] | committer: Steve Lhomme

video_output: add missing else in next_system_pts check

If next_system_pts is INT64_MAX the date_next value cannot be computed
correctly.

Probably missing from 23d2a4ccc0a65e706b2bef69221761d55c6ba4e3.

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

 src/video_output/video_output.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index b3cecff36d..aa7056a5f2 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1508,6 +1508,7 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
              * the current one). */
             paused = true;
         }
+        else
         {
             date_next = next_system_pts - render_delay;
             if (date_next <= system_now)



More information about the vlc-commits mailing list