Catch up on video faster

Previously every (internal) update the decoder would advance 0 or 1 frame. Now
it will advance until it catches up. Like before, if it takes too many steps
(5) before catching up, it seeks instead. This should mostly mean seeking
forwards has less latency.

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2017-10-12 15:20:38 +02:00
parent 52ae68b288
commit de945a528b
2 changed files with 56 additions and 59 deletions
@@ -83,7 +83,6 @@ private:
double lastFrame;
double nextFrame;
unsigned int lagCounter;
void parseHeader();
void seekDecoder(double target);