From 1197e13c2f86ea0c521c206fa3412d50587376da Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Nov 2012 19:08:21 +0100 Subject: options: rename -sub-fuzziness to -autosub-match, change option values "--autosub-match" is close to "--autosub", and reflects what this option does slightly better. Replace the magic number option values with choices: --sub-fuzziness=0 becomes --autosub-match=exact --sub-fuzziness=1 becomes --autosub-match=fuzzy --sub-fuzziness=2 becomes --autosub-match=all --- core/cfg-mplayer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/cfg-mplayer.h') diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index b5b15df0d1..26649b42f6 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -510,7 +510,8 @@ const m_option_t common_opts[] = { // enable Closed Captioning display {"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL}, {"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"sub-fuzziness", &sub_match_fuzziness, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, + {"autosub-match", &sub_match_fuzziness, CONF_TYPE_CHOICE, 0, + M_CHOICES(({"exact", 0}, {"fuzzy", 1}, {"all", 2}))}, {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"subfont", &sub_font_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"sub-pos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, -- cgit v1.2.3