aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index df5984d..04ba62f 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3326,9 +3326,10 @@ namespace QuickMedia {
if(update_time_pos) {
update_time_pos = false;
+ const double prev_video_time_pos = video_time_pos;
if(video_player->get_time_in_file(&video_time_pos) == VideoPlayer::Error::OK) {
successfully_fetched_time_pos = true;
- if(successfully_fetched_video_duration)
+ if(successfully_fetched_video_duration && fabs(video_time_pos - prev_video_time_pos) >= 1.0)
video_page->set_watch_progress(video_time_pos, video_info.duration);
}
}