diff options
author | wm4 <wm4@nowhere> | 2016-04-06 22:56:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-06 22:56:12 +0200 |
commit | 32a92071b4cc58967d51a5e3ce1c3bed219d9111 (patch) | |
tree | 32045d5fff6090aa5b0151d0c2fa053e6e16b22e /video/vaapi.c | |
parent | a606b92f4a6fab12e94ad687f65d4d65f52b6d59 (diff) |
vo: don't reset vsync statistics on seeks etc.
The sync-by-display mode relies on using the vsync statistics for
timing. As a consequence discontinuities must be handled somehow. Until
now we have done this by completely resetting these statistics.
This can be somewhat annoying, especially if the GL driver's vsync
timing is not ideal. So after e.g. a seek it could take a second until
it locked back to the proper values.
Change it not to reset all statistics. Some state obviously has to be
reset, because it's a discontinuity. To make it worse, the driver's
vsync behavior will also change on such discontinuities. To compensate,
we discard the timings for the first 2 vsyncs after each discontinuity
(via num_successive_vsyncs). This is probably not fully ideal, and
num_total_vsync_samples handling in particular becomes a bit
questionable.
Diffstat (limited to 'video/vaapi.c')
0 files changed, 0 insertions, 0 deletions