summaryrefslogtreecommitdiffstats
path: root/mpvcore/parser-cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/parser-cfg.c')
-rw-r--r--mpvcore/parser-cfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpvcore/parser-cfg.c b/mpvcore/parser-cfg.c
index 7f1f954c85..3395a67432 100644
--- a/mpvcore/parser-cfg.c
+++ b/mpvcore/parser-cfg.c
@@ -228,6 +228,9 @@ int m_config_parse_config_file(m_config_t *config, const char *conffile,
bstr bopt = bstr0(opt);
bstr bparam = bstr0(param);
+ if (bopt.len >= 3)
+ bstr_eatstart0(&bopt, "--");
+
if (profile && bstr_equals0(bopt, "profile-desc")) {
m_profile_set_desc(profile, bparam);
goto nextline;