From 1d1d1fbff9648e9adf7acf571514abf618ffc40f Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Wed, 21 Jul 2021 11:06:41 +0200 Subject: 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. --- player/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'player/main.c') 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); -- cgit v1.2.3