aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/QuickMedia.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 3e1e61a..e515c7a 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -411,7 +411,7 @@ namespace QuickMedia {
XSetErrorHandler(x_error_handler);
XSetIOErrorHandler(x_io_error_handler);
- window.setVerticalSyncEnabled(false);
+ window.setVerticalSyncEnabled(true);
monitor_hz = get_monitor_max_hz(disp);
window.setFramerateLimit(FPS_IDLE);
idle = true;
@@ -1754,6 +1754,9 @@ namespace QuickMedia {
}
}
+ window.setFramerateLimit(FPS_IDLE);
+ idle = true;
+
time_watched_timer.restart();
std::unique_ptr<VideoPlayer> video_player;