Seek to video time if video duration is updated

This commit is contained in:
Ylva Selling
2023-02-08 17:50:43 -05:00
parent ec7b564d1c
commit ee22b75da8

View File

@@ -673,6 +673,10 @@ void VideoTileProvider::handleMpvProperties(mpv_event* event) {
_videoDuration = *duration;
_frameDuration = _fps * ((_endJ200Time - _startJ200Time) /_videoDuration);
if (_animationMode == AnimationMode::MapToSimulationTime) {
seekToTime(correctVideoPlaybackTime());
}
LINFO(fmt::format("Duration: {}", *duration));
break;
}