summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/m_option.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mpvcore/m_option.c b/mpvcore/m_option.c
index 948e246956..1a237c7f5e 100644
--- a/mpvcore/m_option.c
+++ b/mpvcore/m_option.c
@@ -2475,9 +2475,15 @@ static char *print_obj_settings_list(const m_option_t *opt, const void *val)
for (int i = 0; entry->attribs[i * 2 + 0]; i++) {
if (i > 0)
res = talloc_strdup_append(res, ":");
- append_param(&res, entry->attribs[i * 2 + 0]);
- res = talloc_strdup_append(res, "=");
- append_param(&res, entry->attribs[i * 2 + 1]);
+ if (strcmp(entry->attribs[i * 2 + 0], "_oldargs_") == 0) {
+ // Compatibility crap; write just the arg without escaping,
+ // and hope it won't crash and burn.
+ res = talloc_strdup_append(res, entry->attribs[i * 2 + 1]);
+ } else {
+ append_param(&res, entry->attribs[i * 2 + 0]);
+ res = talloc_strdup_append(res, "=");
+ append_param(&res, entry->attribs[i * 2 + 1]);
+ }
}
}
}