summaryrefslogtreecommitdiffstats
path: root/options/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-20 14:46:23 +0100
committerwm4 <wm4@nowhere>2014-02-20 14:46:23 +0100
commit98dc8206ae61a857db6017e7244a9af0e578adc6 (patch)
treeb3a5028a0f75bfa187089e7048f897cb42c7cb50 /options/m_option.h
parent857952dce3e78e678bf6d14046e2290e7016d6b8 (diff)
downloadmpv-98dc8206ae61a857db6017e7244a9af0e578adc6.tar.bz2
mpv-98dc8206ae61a857db6017e7244a9af0e578adc6.tar.xz
options: handle escape sequences in e.g. --playing-msg differently
M_OPT_PARSE_ESCAPES was pretty stupid, and broke the (useful) assumption that string variables contain exactly the same value as set by the option. Simplify it, and move escape handling to the place where it's used. Escape handling itself is not terribly useful, but still allows useful things like multiline custom OSD with "\n".
Diffstat (limited to 'options/m_option.h')
-rw-r--r--options/m_option.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/options/m_option.h b/options/m_option.h
index 9178231b2b..fc46599483 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -338,9 +338,6 @@ struct m_option {
// See M_OPT_TYPE_OPTIONAL_PARAM.
#define M_OPT_OPTIONAL_PARAM (1 << 10)
-// Parse C-style escapes like "\n" (for CONF_TYPE_STRING only)
-#define M_OPT_PARSE_ESCAPES (1 << 11)
-
// These are kept for compatibility with older code.
#define CONF_MIN M_OPT_MIN
#define CONF_MAX M_OPT_MAX