From 52d2bcde946b4cc05932db347bce44d2fd518865 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 28 Jun 2020 00:03:27 +0200 Subject: Add --use-system-mpv-config option --- include/QuickMedia.hpp | 2 ++ include/VideoPlayer.hpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index dc81425..2e14b09 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -82,5 +82,7 @@ namespace QuickMedia { bool image_download_cancel = false; int exit_code = 0; std::string resources_root; + bool use_tor = false; + bool use_system_mpv_config = false; }; } \ No newline at end of file diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index e1763f6..4dc7b53 100644 --- a/include/VideoPlayer.hpp +++ b/include/VideoPlayer.hpp @@ -35,7 +35,7 @@ namespace QuickMedia { }; // @event_callback is called from another thread - VideoPlayer(bool use_tor, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback); + VideoPlayer(bool use_tor, bool use_system_mpv_config, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback); ~VideoPlayer(); VideoPlayer(const VideoPlayer&) = delete; VideoPlayer& operator=(const VideoPlayer&) = delete; @@ -66,6 +66,7 @@ namespace QuickMedia { VideoPlayer::Error read_ipc_func(); private: bool use_tor; + bool use_system_mpv_config; pid_t video_process_id; int ipc_socket; bool connected_to_ipc; -- cgit v1.2.3