aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 04ba62f..14efedb 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -803,12 +803,6 @@ namespace QuickMedia {
XSetErrorHandler(x_error_handler);
XSetIOErrorHandler(x_io_error_handler);
- monitor_max_fps = 0;
- for_each_active_monitor_output(disp, [&](const XRRCrtcInfo*, const XRRModeInfo *mode_info) {
- monitor_max_fps = std::max(monitor_max_fps, monitor_info_get_fps(mode_info));
- });
-
- window.set_framerate_limit(monitor_max_fps);
idle = false;
if(create_directory_recursive(get_cache_dir().join("media")) != 0) {
@@ -1466,7 +1460,7 @@ namespace QuickMedia {
void Program::idle_active_handler() {
if(idle)
- window.set_framerate_limit(monitor_max_fps);
+ window.set_framerate_limit(0);
idle = false;
idle_timer.restart();
@@ -3274,10 +3268,11 @@ namespace QuickMedia {
redirect_focus_to_video_player_window(video_player_window);
XSync(disp, False);
- SubtitleData subtitle_data;
- video_page->get_subtitles(subtitle_data);
- if(!subtitle_data.url.empty())
- video_player->add_subtitle(subtitle_data.url, subtitle_data.title, "eng");
+ // TODO: Readd when we no longer depend on yt-dlp
+ //SubtitleData subtitle_data;
+ //video_page->get_subtitles(subtitle_data);
+ //if(!subtitle_data.url.empty())
+ // video_player->add_subtitle(subtitle_data.url, subtitle_data.title, "eng");
update_time_pos = true;
update_window_focus_timer = true;