summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-08 00:16:15 -0600
committerDudemanguy <random342@airmail.cc>2023-01-09 16:37:14 +0000
commit6471afecd0277138efdb3a80dec12dbfff75c72f (patch)
tree3dbf1c722b0c473e53b44d6b415fd15a8459deb1 /options/options.c
parentc4ec47a65e5840643024ba056ba4db20a4300ed2 (diff)
downloadmpv-6471afecd0277138efdb3a80dec12dbfff75c72f.tar.bz2
mpv-6471afecd0277138efdb3a80dec12dbfff75c72f.tar.xz
player: don't force saving start in watch-later-options
The watch-later mechanism has always unconditionally wrote start to files to save the playback position. When this was later expanded to watch-later-options, this logic was kept in place. But we don't actually have to unconditionally write this and can allow users to remove the option from the list if they want to. The start value still requires some special handling; it should always be written if possible regardless of the value changing. However, we can just place it within the default set of options for watch-later-options so it can be removed like any other.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 8075f02077..b4cccd3348 100644
--- a/options/options.c
+++ b/options/options.c
@@ -1069,6 +1069,7 @@ static const struct MPOpts mp_default_opts = {
.cuda_device = -1,
.watch_later_options = (char **)(const char*[]){
+ "start",
"osd-level",
"speed",
"edition",