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 /options/m_option.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 'options/m_option.c')
-rw-r--r-- | options/m_option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_option.c b/options/m_option.c index 4c199967b3..9b946680b7 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -3668,7 +3668,7 @@ static bool obj_settings_list_equal(const m_option_t *opt, void *pa, void *pb) struct m_obj_settings *b = VAL(pb); if (a == b || !a || !b) - return a == b; + return a == b || (!a && !b[0].name) || (!b && !a[0].name); for (int n = 0; a[n].name || b[n].name; n++) { if (!a[n].name || !b[n].name) |