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

video_output: copy the redisplay return value in displayed.date code

The code is logically equivalent. It will allow some simplifications later.
parent b62e602a
No related branches found
No related tags found
1 merge request!2024video_output: rework the logical flow of DisplayPicture()
...@@ -1433,6 +1433,11 @@ static vlc_tick_t DisplayPicture(vout_thread_sys_t *vout) ...@@ -1433,6 +1433,11 @@ static vlc_tick_t DisplayPicture(vout_thread_sys_t *vout)
date_refresh = sys->displayed.date + VOUT_REDISPLAY_DELAY - render_delay; date_refresh = sys->displayed.date + VOUT_REDISPLAY_DELAY - render_delay;
refresh = date_refresh <= system_now; refresh = date_refresh <= system_now;
render_now = refresh; render_now = refresh;
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 else
{ {
......
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