summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-18 11:48:50 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commit3d67041089c7945dcea0162c0038e495d588b379 (patch)
treef808740db919bae523d45ae19196885ebf651c73 /m_option.h
parent10437c35df5d3944625fa6cee05e565b0791fe15 (diff)
downloadmpv-3d67041089c7945dcea0162c0038e495d588b379.tar.bz2
mpv-3d67041089c7945dcea0162c0038e495d588b379.tar.xz
options: remove CONF_TYPE_POSITION
This was the option parser for the off_t C type. These days, off_t is always int64_t, so replace all its uses by int64_t and CONF_TYPE_INT64. Fix the --sstep option. It used CONF_TYPE_INT with an off_t variable, which will result in invalid memory accesses. Make it use type double instead, which seems to make more sense for this option.
Diffstat (limited to 'm_option.h')
-rw-r--r--m_option.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/m_option.h b/m_option.h
index 57fdc33610..73752e7a56 100644
--- a/m_option.h
+++ b/m_option.h
@@ -43,7 +43,6 @@ extern const m_option_type_t m_option_type_float;
extern const m_option_type_t m_option_type_double;
extern const m_option_type_t m_option_type_string;
extern const m_option_type_t m_option_type_string_list;
-extern const m_option_type_t m_option_type_position;
extern const m_option_type_t m_option_type_time;
extern const m_option_type_t m_option_type_time_size;
extern const m_option_type_t m_option_type_choice;
@@ -167,7 +166,6 @@ struct m_sub_options {
#define CONF_TYPE_PRINT_FUNC (&m_option_type_print_func)
#define CONF_TYPE_SUBCONFIG (&m_option_type_subconfig)
#define CONF_TYPE_STRING_LIST (&m_option_type_string_list)
-#define CONF_TYPE_POSITION (&m_option_type_position)
#define CONF_TYPE_IMGFMT (&m_option_type_imgfmt)
#define CONF_TYPE_AFMT (&m_option_type_afmt)
#define CONF_TYPE_SPAN (&m_option_type_span)