diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-02 20:03:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-02 20:03:24 +0200 |
commit | 38874aa9c8bfcf12bd1ceef013a2342da5a0eeea (patch) | |
tree | eb4577d8ad4675b1aeb7e7f05bdf5bb540241579 /include | |
parent | 99bee0e8d2c498f6dff94a87db7540687161f3f7 (diff) |
Add --no-video option to play videos with only audio
Diffstat (limited to 'include')
-rw-r--r-- | include/QuickMedia.hpp | 1 | ||||
-rw-r--r-- | include/VideoPlayer.hpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 03bfcb9..155adc7 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -117,6 +117,7 @@ namespace QuickMedia { int exit_code = 0; std::string resources_root; bool use_tor = false; + bool no_video = false; bool use_system_mpv_config = false; bool upscale_images = false; bool running = false; diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index e4a5610..86410da 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 use_system_mpv_config, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback, const std::string &resource_root); + VideoPlayer(bool use_tor, bool no_video, bool use_system_mpv_config, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback, const std::string &resource_root); ~VideoPlayer(); VideoPlayer(const VideoPlayer&) = delete; VideoPlayer& operator=(const VideoPlayer&) = delete; @@ -71,6 +71,7 @@ namespace QuickMedia { VideoPlayer::Error read_ipc_func(); private: bool use_tor; + bool no_video; bool use_system_mpv_config; pid_t video_process_id; int ipc_socket; |