diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-01-25 16:52:35 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-01-25 16:52:35 +0100 |
commit | 0d7ce5264e8c87c522a93172c944541bb205b9d5 (patch) | |
tree | 3fe19f12d96c1bf830f777e101e37edfedd0b80d /include | |
parent | 82d4273e445b85e15fe12caaa52c301fa77aaa6c (diff) |
Limit ytdl video resolution to the largest monitors height
Diffstat (limited to 'include')
-rw-r--r-- | include/VideoPlayer.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index 51985e6..b2326bb 100644 --- a/include/VideoPlayer.hpp +++ b/include/VideoPlayer.hpp @@ -36,7 +36,7 @@ namespace QuickMedia { }; // @event_callback is called from another thread - VideoPlayer(bool use_tor, bool no_video, bool use_system_mpv_config, bool resume_playback, bool keep_open, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback, const std::string &resource_root); + VideoPlayer(bool use_tor, bool no_video, bool use_system_mpv_config, bool resume_playback, bool keep_open, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback, const std::string &resource_root, int monitor_height); ~VideoPlayer(); VideoPlayer(const VideoPlayer&) = delete; VideoPlayer& operator=(const VideoPlayer&) = delete; @@ -84,6 +84,7 @@ namespace QuickMedia { sf::Clock retry_timer; int connect_tries; int find_window_tries; + int monitor_height; struct sockaddr_un ipc_addr; char ipc_server_path[L_tmpnam]; EventCallbackFunc event_callback; |