[vlc-devel] [PATCH 10/17] video_output: initialize the next picture deadline in ThreadDisplayPicture
Steve Lhomme
robux4 at ycbcr.xyz
Mon Sep 14 16:03:21 CEST 2020
---
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 59eba1880b0..dc5e602002e 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;
--
2.26.2
More information about the vlc-devel
mailing list