summaryrefslogtreecommitdiffstats
path: root/mplayer.c
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 /mplayer.c
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 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index c90812e871..376b243d58 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -204,8 +204,8 @@ static const char av_desync_help_text[] = _(
static int drop_frame_cnt; // total number of dropped frames
// seek:
-static off_t seek_to_byte;
-static off_t step_sec;
+static int64_t seek_to_byte;
+static double step_sec;
static m_time_size_t end_at = { .type = END_AT_NONE, .pos = 0 };