mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-21 20:39:08 -06:00
Add a comment for seeking
This commit is contained in:
@@ -471,6 +471,7 @@ double VideoTileProvider::correctVideoPlaybackTime() const {
|
||||
}
|
||||
|
||||
void VideoTileProvider::seekToTime(double time) {
|
||||
// Prevent from seeking to the same time multiple times in a row
|
||||
bool seekIsDifferent = abs(time - _currentVideoTime) > SeekThreshold;
|
||||
if (seekIsDifferent && !_isSeeking) {
|
||||
// Pause while seeking
|
||||
@@ -500,7 +501,6 @@ void VideoTileProvider::renderMpv() {
|
||||
_timeAtLastRender = now;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure we are at the correct time
|
||||
double time = correctVideoPlaybackTime();
|
||||
bool shouldSeek = abs(time - _currentVideoTime) > SeekThreshold;
|
||||
|
||||
Reference in New Issue
Block a user