[vlc-devel] [PATCH 05/16] video_output: add missing else in next_system_pts check

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


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

Probably mssing from 23d2a4ccc0a65e706b2bef69221761d55c6ba4e3.
---
 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 b3cecff36d1..aa7056a5f22 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)
-- 
2.26.2



More information about the vlc-devel mailing list