diff options
author | Guido Cella <guido@guidocella.xyz> | 2021-07-21 11:06:41 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-07-21 13:19:28 +0000 |
commit | 1d1d1fbff9648e9adf7acf571514abf618ffc40f (patch) | |
tree | 9a3fde28a5fe5e2f5465fe7b7fdecddc24a03b4c /player/main.c | |
parent | ccb87ad6374c69beb7e88357003bb13cb427a6ee (diff) | |
download | mpv-1d1d1fbff9648e9adf7acf571514abf618ffc40f.tar.bz2 mpv-1d1d1fbff9648e9adf7acf571514abf618ffc40f.tar.xz |
options: add watch-later-options
This allows configuring which options are saved by quit-watch-later.
Fixes #4126, #4641 and #5567.
Toggling a video or audio filter twice would treat the option as changed
because the backup value is NULL, and the current value of vf/af is a
list with one empty item, so obj_settings_list_equal had to be changed.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c index 58be00b6d8..e039f61975 100644 --- a/player/main.c +++ b/player/main.c @@ -353,7 +353,10 @@ int mp_initialize(struct MPContext *mpctx, char **options) m_config_set_profile(mpctx->mconfig, "pseudo-gui", 0); } - mp_get_resume_defaults(mpctx); + // Backup the default settings, which should not be stored in the resume + // config files. This explicitly includes values set by config files and + // the command line. + m_config_backup_watch_later_opts(mpctx->mconfig); mp_input_load_config(mpctx->input); |