viewer: don't update the length until the operation is done

Prevents the frame/audio caches from being truncated unnecessarily during
an operation that ultimately doesn't change the length.
This commit is contained in:
itsmattkc
2020-08-18 15:06:44 +10:00
parent f3f81eb2be
commit 5f48bdf0e7
+4
View File
@@ -200,6 +200,10 @@ void ViewerOutput::UpdateTrackCache()
void ViewerOutput::VerifyLength()
{
if (operation_stack_ != 0) {
return;
}
NodeTraverser traverser;
rational video_length;