diff options
author | wm4 <wm4@nowhere> | 2014-02-25 22:34:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-25 22:34:32 +0100 |
commit | 67f244c6d4b0ef9ad2e55483508efbf6fe40d03b (patch) | |
tree | 320e7bc2b718af0192412dce83ee8ad864b99116 /player/main.c | |
parent | 70ff543029068188a3de39a80a764267c6671e7c (diff) | |
download | mpv-67f244c6d4b0ef9ad2e55483508efbf6fe40d03b.tar.bz2 mpv-67f244c6d4b0ef9ad2e55483508efbf6fe40d03b.tar.xz |
config: don't save options to resume-config that didn't change
This is approximate: we read each option value on program start
(before starting playback of a file), and when writing the resume
config, compare each value to the current state. This also means
when a value is changed and then changed back, it's not stored. In
particular, option values set in config files and on the command
line are considered the default.
This should help reducing the numbers of options overridden by the
resume config. If too much is overridden, it becomes an inconvenience,
because changes in config files will apparently have no effect when
resuming a file.
Also see github issue #574.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index af9ffe8c65..e510081d5b 100644 --- a/player/main.c +++ b/player/main.c @@ -412,6 +412,7 @@ int mp_initialize(struct MPContext *mpctx) // From this point on, all mpctx members are initialized. mpctx->initialized = true; + mp_get_resume_defaults(mpctx); #if HAVE_COCOA if (mpctx->is_cplayer) |