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

interlacing: make the timeout to detect switch to non interlaced CLOCK_FREQ based

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 97df12a6
......@@ -182,7 +182,7 @@ void vout_SetInterlacingState(vout_thread_t *vout, bool is_interlaced)
- (!!vout->p->interlacing.is_interlaced);
if (interlacing_change == 1 ||
(interlacing_change == -1 &&
vout->p->interlacing.date + 30000000 < mdate()))
vout->p->interlacing.date + CLOCK_FREQ*30 < mdate()))
{
msg_Dbg(vout, "Detected %s video",
is_interlaced ? "interlaced" : "progressive");
......
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