viewer: store video/audio length outside of cache

This commit is contained in:
itsmattkc
2021-04-13 15:39:45 +10:00
parent f9c145b4d4
commit 46e00c0099
3 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -594,7 +594,7 @@ QString ViewerWidget::GetCachedFilenameFromTime(const rational &time)
bool ViewerWidget::FrameExistsAtTime(const rational &time)
{
return GetConnectedNode() && time >= 0 && time < GetConnectedNode()->video_frame_cache()->GetLength();
return GetConnectedNode() && time >= 0 && time < GetConnectedNode()->GetVideoLength();
}
void ViewerWidget::SetDisplayImage(FramePtr frame, bool main_only)