cleaned up viewer refactor

This commit is contained in:
itsmattkc
2022-01-02 18:43:43 -08:00
parent 4f9ac4b36d
commit a66cb853c4
4 changed files with 21 additions and 39 deletions
+2 -4
View File
@@ -52,12 +52,10 @@ public:
void PurgeBefore(const rational &time, int playback_speed)
{
int popped = 0;
while (!this->empty() && this->front().timestamp < time) {
popped++;
while (!this->empty()
&& ((playback_speed > 0 && this->front().timestamp < time) || (playback_speed < 0 && this->front().timestamp > time))) {
this->pop_front();
}
if (popped > 0) qDebug() << "Purged" << popped;
}
};