[vlc-commits] video_output: initialize the next picture deadline in ThreadDisplayPicture

Steve Lhomme git at videolan.org
Tue Sep 15 12:24:50 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug 12 10:00:28 2020 +0200| [3ee1562ec07703d5b3583df277a183a09b553faf] | committer: Steve Lhomme

video_output: initialize the next picture deadline in ThreadDisplayPicture

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 59eba1880b..dc5e602002 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1485,6 +1485,9 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
     }
     vlc_mutex_unlock(&sys->filter.lock);
 
+    if (deadline)
+        *deadline = VLC_TICK_INVALID;
+
     if (first)
         if (ThreadDisplayPreparePicture(vout, true, frame_by_frame, &paused)) /* FIXME not sure it is ok */
             return VLC_EGENERIC;
@@ -1899,7 +1902,6 @@ static void *Thread(void *object)
             }
         }
 
-        deadline = VLC_TICK_INVALID;
         wait = ThreadDisplayPicture(vout, &deadline) != VLC_SUCCESS;
 
         const bool picture_interlaced = sys->displayed.is_interlaced;



More information about the vlc-commits mailing list