Commit eeb4f5c7 authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

input: turn the hardcoded buffer check period into a CLOCK_FREQ based value

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 1f6d079c
......@@ -774,9 +774,9 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
mtime_t now = mdate();
/* Recheck ES buffer level every 20 ms when seeking */
if( now < i_last_seek_mdate + INT64_C(125000)
&& (i_deadline < 0 || i_deadline > now + INT64_C(20000)) )
i_deadline = now + INT64_C(20000);
if( now < i_last_seek_mdate + CLOCK_FREQ/8
&& (i_deadline < 0 || i_deadline > now + CLOCK_FREQ/50) )
i_deadline = now + CLOCK_FREQ/50;
else
b_postpone = false;
}
......
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