core: timing: add special handling of long frame intervals
commit2ba074e613d79600023128974ea60a75251480b5
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 14 Dec 2010 18:20:30 +0000 (14 20:20 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 14 Dec 2010 20:33:11 +0000 (14 22:33 +0200)
tree0f432c04ef103909dc54e3fcc06bb6ae23139a96
parent188fbb6622cdc0429f7f966e239354cc054cd077
core: timing: add special handling of long frame intervals

Add separate handling for the case where the time to flip the next
frame on the VO is more than 50 ms away. In that case don't update OSD
contents yet, but wait for possible changes until 50 ms before the
frame. Sleep until that time in mp_input_get_cmd(), so the sleep is
done in select() and input events can be responded to immediately.
Also raise the limit on audio out delay used to limit sleep.
mplayer.c