Skip to content

Commit 83d583e

Browse files
committed
options: reset ab loops between files by default
Add ab-loop options to --reset-on-next-file's default value because you never want to preserve them between files. VLC and MPC-HC also reset them.
1 parent 1f7c223 commit 83d583e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

DOCS/man/options.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,12 +816,12 @@ Program Behavior
816816
defined profiles.
817817

818818
``--reset-on-next-file=<all|option1,option2,...>``
819-
Normally, mpv will try to keep all settings when playing the next file on
819+
Normally, mpv will try to keep most settings when playing the next file on
820820
the playlist, even if they were changed by the user during playback. (This
821821
behavior is the opposite of MPlayer's, which tries to reset all settings
822822
when starting next file.)
823823

824-
Default: Do not reset anything.
824+
Default: ``ab-loop-a``, ``ab-loop-b``, ``ab-loop-count``.
825825

826826
This can be changed with this option. It accepts a list of options, and
827827
mpv will reset the value of these options on playback start to the initial

options/options.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,14 @@ static const m_option_t mp_opts[] = {
949949
static const struct MPOpts mp_default_opts = {
950950
.use_terminal = true,
951951
.msg_color = true,
952+
953+
.reset_options = (char *[]){
954+
"ab-loop-a",
955+
"ab-loop-b",
956+
"ab-loop-count",
957+
NULL
958+
},
959+
952960
.softvol_max = 130,
953961
.softvol_volume = 100,
954962
.softvol_gain_max = 12,

0 commit comments

Comments
 (0)