[vlc-devel] [PATCH 14/21] video_output: change the default value of current_needs_redisplay
Steve Lhomme
robux4 at ycbcr.xyz
Tue Sep 15 14:36:19 CEST 2020
If there is no display date, the current picture needs a display. It's the
first picture or there was a flush. It's similar to having passed the redisplay
date by an infinite amount of time.
---
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 37da38e8924..b79f09cca14 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1514,13 +1514,15 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
*
* So it will be done later.
*/
- bool current_needs_redisplay = false;
+ bool current_needs_redisplay;
if (sys->displayed.date != VLC_TICK_INVALID) {
const vlc_tick_t date_refresh = sys->displayed.date + VOUT_REDISPLAY_DELAY - render_delay;
current_needs_redisplay = date_refresh <= system_now; // we passed the redisplay date
if (deadline)
*deadline = date_refresh;
+ } else {
+ current_needs_redisplay = true;
}
if (!paused && sys->displayed.next) {
--
2.26.2
More information about the vlc-devel
mailing list