render: use events to iterate gradually through frame queue

Fixes #1665
This commit is contained in:
itsmattkc
2021-07-12 00:48:26 -07:00
parent 310fd3541a
commit 7ff419b0a3
4 changed files with 37 additions and 24 deletions
+6
View File
@@ -151,6 +151,7 @@ private:
class TimeRangeListFrameIterator
{
public:
TimeRangeListFrameIterator() = default;
TimeRangeListFrameIterator(const TimeRangeList &list, const rational &timebase);
bool GetNext(rational *out);
@@ -168,6 +169,11 @@ public:
int size();
void reset()
{
*this = TimeRangeListFrameIterator();
}
private:
void UpdateIndexIfNecessary();