reworked viewer timers

This commit is contained in:
itsmattkc
2022-01-02 16:56:11 -08:00
parent ee3ea5990b
commit 2afa7ecafe
9 changed files with 183 additions and 222 deletions
+10
View File
@@ -50,6 +50,16 @@ public:
}
}
void PurgeBefore(const rational &time, int playback_speed)
{
int popped = 0;
while (!this->empty() && this->front().timestamp < time) {
popped++;
this->pop_front();
}
if (popped > 0) qDebug() << "Purged" << popped;
}
};
}