From 67f244c6d4b0ef9ad2e55483508efbf6fe40d03b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Feb 2014 22:34:32 +0100 Subject: 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. --- player/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/main.c') 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) -- cgit v1.2.3