diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index e0d0dc9f1f..78678267cb 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1741,6 +1741,8 @@ behavior is the opposite of MPlayer's, which tries to reset all settings when starting next file.) + Default: ``--reset-on-next-file=pause`` (only the pause mode is reset). + This can be changed with this option. It accepts a list of options, and mpv will reset the value of these options on playback start to the initial value. The initial value is either the default value, or as set by the @@ -1758,6 +1760,7 @@ speed settings if they were changed during playback. - ``--reset-on-next-file=all`` Try to reset all settings that were changed during playback. + - ``--reset-on-next-file=""`` Don't reset pause mode. --reuse-socket (udp:// only) diff --git a/core/defaultopts.c b/core/defaultopts.c index a03370bed6..30452a139a 100644 --- a/core/defaultopts.c +++ b/core/defaultopts.c @@ -8,7 +8,9 @@ void set_default_mplayer_options(struct MPOpts *opts) { + static const char *reset_options[] = {"pause", NULL}; *opts = (const struct MPOpts){ + .reset_options = (char **)reset_options, .audio_driver_list = NULL, .audio_decoders = "-spdif:*", // never select spdif by default .video_decoders = NULL,