[vlc-devel] [PATCH v5 24/24] video_output: code cleaning

Steve Lhomme robux4 at ycbcr.xyz
Mon Aug 24 09:42:05 CEST 2020


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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 2aac0f53219..f55b5c1c6cb 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1608,7 +1608,7 @@ void vout_NextPicture(vout_thread_t *vout, vlc_tick_t *duration)
     if (sys->step.last == VLC_TICK_INVALID)
         sys->step.last = sys->displayed.timestamp;
 
-    if (ThreadDisplayPicture(sys, NULL) == 0) {
+    if (ThreadDisplayPicture(sys, NULL) == VLC_SUCCESS) {
         sys->step.timestamp = sys->displayed.timestamp;
 
         if (sys->step.last != VLC_TICK_INVALID &&
@@ -1843,8 +1843,6 @@ static void *Thread(void *object)
                 deadline -= vout_chrono_GetHigh(&sys->render) + VOUT_MWAIT_TOLERANCE;
             const vlc_tick_t max_deadline = vlc_tick_now() + VLC_TICK_FROM_MS(100);
             deadline = __MIN(deadline, max_deadline);
-        } else {
-            deadline = INVALID_DEADLINE;
         }
 
         vlc_mutex_lock(&sys->control_lock);
-- 
2.26.2



More information about the vlc-devel mailing list