0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

options: rename --play-dir to --play-direction

--play-dir sounds like it has something to do with directories so change
it. The play_dir variable is used a bunch everywhere internally so
whatever just leave it alone instead of renaming that.
This commit is contained in:
Dudemanguy 2023-10-15 11:04:05 -05:00
parent 36de0d784f
commit 2783d5a51a
3 changed files with 5 additions and 3 deletions

View File

@ -106,6 +106,7 @@ Interface changes
- rename `--sub-ass-force-style` to `--sub-ass-style-overrides`
- rename `--screenshot-directory` to `--screenshot-dir`
- rename `--watch-later-directory` to `--watch-later-dir`
- rename `--play-dir` to `--play-direction`
--- mpv 0.36.0 ---
- add `--target-contrast`
- Target luminance value is now also applied when ICC profile is used.

View File

@ -484,7 +484,7 @@ Playback Control
of them fails. This doesn't affect playback of audio-only or video-only
files.
``--play-dir=<forward|+|backward|->``
``--play-direction=<forward|+|backward|->``
Control the playback direction (default: forward). Setting ``backward``
will attempt to play the file in reverse direction, with decreasing
playback time. If this is set on playback starts, playback will start from
@ -701,7 +701,7 @@ Playback Control
``--demuxer-backward-playback-step=<seconds>``
Number of seconds the demuxer should seek back to get new packets during
backward playback (default: 60). This is useful for tuning backward
playback, see ``--play-dir`` for details.
playback, see ``--play-direction`` for details.
Setting this to a very low value or 0 may make the player think seeking is
broken, or may make it perform multiple seeks.

View File

@ -522,7 +522,7 @@ static const m_option_t mp_opts[] = {
{"end", OPT_REL_TIME(play_end)},
{"length", OPT_REL_TIME(play_length)},
{"play-dir", OPT_CHOICE(play_dir,
{"play-direction", OPT_CHOICE(play_dir,
{"forward", 1}, {"+", 1}, {"backward", -1}, {"-", -1})},
{"rebase-start-time", OPT_BOOL(rebase_start_time)},
@ -886,6 +886,7 @@ static const m_option_t mp_opts[] = {
{"", OPT_SUBSTRUCT(encode_opts, encode_config)},
{"play-dir", OPT_REPLACED("play-direction")},
{"screenshot-directory", OPT_REPLACED("screenshot-dir")},
{"sub-forced-only", OPT_REPLACED("sub-forced-events-only")},
{"watch-later-directory", OPT_REPLACED("watch-later-dir")},