diff options
author | wm4 <wm4@nowhere> | 2013-08-04 23:56:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-05 00:00:26 +0200 |
commit | ee2e3b3374c4756dc881962bea4e4615805a8122 (patch) | |
tree | eefd7cd4f17e6b68d2a7eebf4d9fcd1db0b9b1f1 /core/options.c | |
parent | cccfac47a423cbaeda04f9864c4676ed1c9d5002 (diff) | |
download | mpv-ee2e3b3374c4756dc881962bea4e4615805a8122.tar.bz2 mpv-ee2e3b3374c4756dc881962bea4e4615805a8122.tar.xz |
core: change speed option/property to double
The --speed option and the speed property used float. Change them to
double.
Change the commands that manipulate the property (speed_mult/add) to
double as well. Since the cycle command shares code with the add
command, we change that as well.
The reason for this change is that this allows better control over
speed, such as stepping by semitones. Using floats is also just plain
unnecessary.
Diffstat (limited to 'core/options.c')
-rw-r--r-- | core/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/options.c b/core/options.c index e2a7589708..0409288b9e 100644 --- a/core/options.c +++ b/core/options.c @@ -448,7 +448,7 @@ const m_option_t mp_opts[] = { OPT_INTRANGE("srate", force_srate, 0, 1000, 8*48000), OPT_CHMAP("channels", audio_output_channels, CONF_MIN, .min = 1), OPT_AUDIOFORMAT("format", audio_output_format, 0), - OPT_FLOATRANGE("speed", playback_speed, 0, 0.01, 100.0), + OPT_DOUBLE("speed", playback_speed, M_OPT_RANGE, .min = 0.01, .max = 100.0), // set a-v distance OPT_FLOATRANGE("audio-delay", audio_delay, 0, -100.0, 100.0), |