0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02: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
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)

View File

@ -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,