aboutsummaryrefslogtreecommitdiff
path: root/include/VideoPlayer.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-15 00:59:47 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-15 00:59:47 +0100
commit86db163a96e0471c6f49da7c1250cc9bde48fdfb (patch)
treea98195eb604b6572cab3c8f61d1ca5ca302c3def /include/VideoPlayer.hpp
parentc4c4366947e4df1502032b3814ef736faa1ae540 (diff)
Matrix: keep image/video open. Need to manually close. Fixes auto close of images
Diffstat (limited to 'include/VideoPlayer.hpp')
-rw-r--r--include/VideoPlayer.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp
index abd715a..51985e6 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, 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);
~VideoPlayer();
VideoPlayer(const VideoPlayer&) = delete;
VideoPlayer& operator=(const VideoPlayer&) = delete;
@@ -77,6 +77,7 @@ namespace QuickMedia {
bool no_video;
bool use_system_mpv_config;
bool resume_playback;
+ bool keep_open;
pid_t video_process_id;
int ipc_socket;
bool connected_to_ipc;