aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp17
-rw-r--r--src/VideoPlayer.cpp1
2 files changed, 7 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;
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 9036155..26946fc 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -235,6 +235,7 @@ namespace QuickMedia {
if(startup_args.use_youtube_dl) {
args.push_back("--ytdl=yes");
args.push_back(ytdl_format.c_str());
+ //args.push_back("--ytdl-raw-options=sub-lang=\"en,eng,enUS,en-US\",write-sub=");
} else {
args.push_back("--ytdl=no");
}