aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-01-07 12:18:55 +0100
committerdec05eba <dec05eba@protonmail.com>2023-01-07 12:18:55 +0100
commit665c015988ce5a27f48f61ffdc0fc579075f6ddf (patch)
tree038b69be3a36d3b94b0714d25326130ae2edcc89 /src
parent1f40fdb1f23797347a960aaa53f3656a4fe5f44f (diff)
Mpv: use custom input.conf even when using use_system_mpv_config=true
Diffstat (limited to 'src')
-rw-r--r--src/VideoPlayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 4a50f79..8614e94 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -170,6 +170,7 @@ namespace QuickMedia {
video_player_filepath = "/usr/bin/quickmedia-video-player";
std::string config_dir = "--config-dir=" + startup_args.resource_root + "mpv";
+ std::string input_conf_file = "--input-conf=" + startup_args.resource_root + "mpv/input.conf";
std::vector<const char*> args;
// TODO: Resume playback if the last video played matches the first video played next time QuickMedia is launched
@@ -246,6 +247,7 @@ namespace QuickMedia {
args.push_back("--config=yes");
args.push_back("--load-scripts=yes");
args.push_back("--osc=yes");
+ args.push_back(input_conf_file.c_str());
} else {
args.insert(args.end(), {
config_dir.c_str(),