diff options
author | wm4 <wm4@nowhere> | 2014-02-20 14:46:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-20 14:46:23 +0100 |
commit | 98dc8206ae61a857db6017e7244a9af0e578adc6 (patch) | |
tree | b3a5028a0f75bfa187089e7048f897cb42c7cb50 /options/m_option.h | |
parent | 857952dce3e78e678bf6d14046e2290e7016d6b8 (diff) | |
download | mpv-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.h | 3 |
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 |