summaryrefslogtreecommitdiffstats
path: root/options/m_config.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-23 22:59:04 +0200
committerwm4 <wm4@nowhere>2015-07-23 22:59:04 +0200
commit3cbf68b47079df130d2a767da7f6af352202112c (patch)
tree588c6ca85a5d20a0768fc73ccedf9e4918f4afb1 /options/m_config.c
parent86a60a4dd22a717a069346acf4a6171837fb01b3 (diff)
downloadmpv-3cbf68b47079df130d2a767da7f6af352202112c.tar.bz2
mpv-3cbf68b47079df130d2a767da7f6af352202112c.tar.xz
command: add property indicating per-file options
Fixes #2165, more or less.
Diffstat (limited to 'options/m_config.c')
-rw-r--r--options/m_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/m_config.c b/options/m_config.c
index e513019c59..030c144dfc 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -272,6 +272,7 @@ static void ensure_backup(struct m_config *config, struct m_config_option *co)
m_option_copy(co->opt, bc->backup, co->data);
bc->next = config->backup_opts;
config->backup_opts = bc;
+ co->is_set_locally = true;
}
void m_config_restore_backups(struct m_config *config)
@@ -282,6 +283,7 @@ void m_config_restore_backups(struct m_config *config)
m_option_copy(bc->co->opt, bc->co->data, bc->backup);
m_option_free(bc->co->opt, bc->backup);
+ bc->co->is_set_locally = false;
talloc_free(bc);
}
}