viewer: show last frame in queue even if queue cannot keep up

It's better than nothing
This commit is contained in:
itsmattkc
2021-05-05 12:49:29 +10:00
parent 367293e253
commit 7945a6b58a
+6
View File
@@ -484,6 +484,12 @@ void ViewerWidget::UpdateTextureFromNode()
} else {
if (playback_queue_.size() == 1) {
// This is the last frame left in the queue. Even though it's incorrect, we'll show it
// just for improved user feedback
SetDisplayImage(pf.frame, true);
}
// Skip this frame
PopOldestFrameFromPlaybackQueue();
if (popped) {