Automatically compute the latency(pts_delay) needed after a buffer underflow.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 13 Jul 2009 19:04:44 +0000 (21:04 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 13 Jul 2009 19:13:13 +0000 (21:13 +0200)
commitdc5be23723fea2b03d3ae9cb5534c4513aa9b6fb
tree7d9ea36effd981b88d4385d1d07674ee1356aa0a
parenta48799e7a8702975e873e31a37be606267d7c674
Automatically compute the latency(pts_delay) needed after a buffer underflow.

The latency is increased by monitoring the last buffer underflows and by
filtering the values obtained (median 3).
It is simple and pretty robust (tested with http and sshfs over wireless).
src/input/clock.c
src/input/clock.h
src/input/es_out.c