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. --- options/options.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index cf0eebf527..4ea23cc702 100644 --- a/options/options.c +++ b/options/options.c @@ -695,6 +695,7 @@ static const m_option_t mp_opts[] = { OPT_FLAG(ignore_path_in_watch_later_config)}, {"watch-later-directory", OPT_STRING(watch_later_directory), .flags = M_OPT_FILE}, + {"watch-later-options", OPT_STRINGLIST(watch_later_options)}, {"ordered-chapters", OPT_FLAG(ordered_chapters)}, {"ordered-chapters-files", OPT_STRING(ordered_chapters_files), @@ -1043,6 +1044,44 @@ static const struct MPOpts mp_default_opts = { }, .cuda_device = -1, + + .watch_later_options = (char **)(const char*[]){ + "osd-level", + "speed", + "edition", + "pause", + "volume", + "mute", + "audio-delay", + "fullscreen", + "ontop", + "border", + "gamma", + "brightness", + "contrast", + "saturation", + "hue", + "deinterlace", + "vf", + "af", + "panscan", + "aid", + "vid", + "sid", + "sub-delay", + "sub-speed", + "sub-pos", + "sub-visibility", + "sub-scale", + "sub-use-margins", + "sub-ass-force-margins", + "sub-ass-vsfilter-aspect-compat", + "sub-ass-override", + "ab-loop-a", + "ab-loop-b", + "video-aspect-override", + NULL + }, }; const struct m_sub_options mp_opt_root = { -- cgit v1.2.3