Commit 09fbe460 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

vout: don't query the clock if not needed

It is not needed if the picture is forced or if we don't care about
frame lateness (frame_next).
parent 1cb0afc2
......@@ -991,6 +991,8 @@ static picture_t *ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
decoded = picture_fifo_Pop(sys->decoder_fifo);
if (decoded) {
if (is_late_dropped && !decoded->b_force)
{
const vlc_tick_t system_now = vlc_tick_now();
const vlc_tick_t system_pts =
vlc_clock_ConvertToSystem(sys->clock, system_now,
......@@ -1003,7 +1005,7 @@ static picture_t *ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
* current picture can't be be late. */
*paused = true;
}
else if (is_late_dropped && !decoded->b_force)
else
{
if (ThreadDisplayIsPictureLate(vout, decoded, system_now,
system_pts))
......@@ -1013,6 +1015,7 @@ static picture_t *ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
continue;
}
}
}
vlc_video_context *pic_vctx = picture_GetVideoContext(decoded);
if (!VideoFormatIsCropArEqual(&decoded->format, &sys->filter.src_fmt))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment