mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
Seek to video time if video duration is updated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user