diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-01-07 12:18:55 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-01-07 12:18:55 +0100 |
commit | 665c015988ce5a27f48f61ffdc0fc579075f6ddf (patch) | |
tree | 038b69be3a36d3b94b0714d25326130ae2edcc89 | |
parent | 1f40fdb1f23797347a960aaa53f3656a4fe5f44f (diff) |
Mpv: use custom input.conf even when using use_system_mpv_config=true
-rw-r--r-- | src/VideoPlayer.cpp | 2 |
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(), |