From b85983a4a6f52c85651f916bfedb8234c9424634 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 19 Apr 2014 22:05:17 +0200 Subject: encode: don't apply default config options Often, user configs set options that are not suitable for encoding. Usually, playback and encoding are pretty different things, so it makes sense to keep them strictly separate. There are several possible solutions. The approach taken by this commit is to basically ignore the default config settings, and switch to an [encoding] config profile section instead. This also makes it impossible to have --o in a config file, because --o enables encode mode. See github issue #727 for discussion. --- options/m_config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/m_config.c') diff --git a/options/m_config.c b/options/m_config.c index ac3ccc3640..59e8cb779e 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -758,6 +758,8 @@ struct m_profile *m_config_get_profile0(const struct m_config *config, struct m_profile *m_config_add_profile(struct m_config *config, char *name) { + if (!name || !name[0] || strcmp(name, "default") == 0) + return NULL; // never a real profile struct m_profile *p = m_config_get_profile0(config, name); if (p) return p; -- cgit v1.2.3