[vlc-devel] [PATCH 13/17] video_output: set the deadline early when there is a previous frame displayed
Steve Lhomme
robux4 at ycbcr.xyz
Mon Sep 14 16:03:24 CEST 2020
date_refresh is now a local variable.
---
src/video_output/video_output.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 828edd4772b..39fa523d51a 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1513,10 +1513,11 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
*/
bool refresh = false;
- vlc_tick_t date_refresh = VLC_TICK_INVALID;
if (sys->displayed.date != VLC_TICK_INVALID) {
- date_refresh = sys->displayed.date + VOUT_REDISPLAY_DELAY;
+ vlc_tick_t date_refresh = sys->displayed.date + VOUT_REDISPLAY_DELAY;
refresh = date_refresh <= system_now;
+ if (!frame_by_frame)
+ *deadline = date_refresh;
}
if (!paused && sys->displayed.next) {
@@ -1539,8 +1540,6 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
bool force_refresh = !drop_next_frame && refresh;
if (!frame_by_frame) {
- if (date_refresh != VLC_TICK_INVALID)
- *deadline = date_refresh;
if (date_next != VLC_TICK_INVALID && date_next < *deadline)
*deadline = date_next;
}
--
2.26.2
More information about the vlc-devel
mailing list