1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-19 21:56:40 +00:00

core: reset pause state by default when going to next file

Apparently this behavior is more intuitive/better to users.
This commit is contained in:
wm4 2013-06-07 17:07:04 +02:00
parent 6fc91b44cd
commit 812798c5ac
2 changed files with 5 additions and 0 deletions

View File

@ -1741,6 +1741,8 @@
behavior is the opposite of MPlayer's, which tries to reset all settings behavior is the opposite of MPlayer's, which tries to reset all settings
when starting next file.) 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 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 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 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. speed settings if they were changed during playback.
- ``--reset-on-next-file=all`` Try to reset all settings that were changed - ``--reset-on-next-file=all`` Try to reset all settings that were changed
during playback. during playback.
- ``--reset-on-next-file=""`` Don't reset pause mode.
--reuse-socket --reuse-socket
(udp:// only) (udp:// only)

View File

@ -8,7 +8,9 @@
void set_default_mplayer_options(struct MPOpts *opts) void set_default_mplayer_options(struct MPOpts *opts)
{ {
static const char *reset_options[] = {"pause", NULL};
*opts = (const struct MPOpts){ *opts = (const struct MPOpts){
.reset_options = (char **)reset_options,
.audio_driver_list = NULL, .audio_driver_list = NULL,
.audio_decoders = "-spdif:*", // never select spdif by default .audio_decoders = "-spdif:*", // never select spdif by default
.video_decoders = NULL, .video_decoders = NULL,