Skip to content
Snippets Groups Projects
Commit 542da574 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

video_output: copy the redisplay return value in next != NULL code

To be removed next.
parent 76aa1d6e
No related branches found
No related tags found
1 merge request!2024video_output: rework the logical flow of DisplayPicture()
......@@ -1428,6 +1428,12 @@ static vlc_tick_t DisplayPicture(vout_thread_sys_t *vout)
// to render now
// display forced picture immediately
render_now = sys->displayed.current->b_force;
if (!first && !refresh && next == NULL) {
// nothing changed, wait until the next deadline or a control
vlc_tick_t max_deadline = vlc_tick_now() + VOUT_REDISPLAY_DELAY;
return __MIN(date_refresh, max_deadline);
}
}
else if (likely(sys->displayed.date != VLC_TICK_INVALID))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment