]> git.sesse.net Git - nageru/commit
Fix an issue with the correction factor locking to 0.95.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 11 Feb 2017 18:22:36 +0000 (19:22 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 11 Feb 2017 18:22:36 +0000 (19:22 +0100)
commit14c360d834d666ab543bffaf99b6cdfb8c2babac
tree610cf09126b9a60d57eaa65c68bc47c15fe78e72
parentf346b58908f734cd71e837545992256085745024
Fix an issue with the correction factor locking to 0.95.

Basically what was happening is that if the master card lost
or corrupted a frame, which we didn't set a timestamp on,
causing it to have steady_clock::time_point::min(). This would
in turn cause us to assume a latency of trillions of seconds,
throwing off the filter and essentially making it be 0.95 forever.

The fix is twofold; we always set timestamps, but also make
ourselves robust to the ones that are way off (negative uptime).
decklink_capture.cpp
mixer.cpp
resampling_queue.cpp