render: use events to iterate gradually through frame queue
Fixes #1665
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user