Add a comment for seeking

This commit is contained in:
Ylva Selling
2023-02-08 17:43:33 -05:00
parent 079cf50beb
commit ec7b564d1c

View File

@@ -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;