summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-04 18:09:04 +0200
committerwm4 <wm4@nowhere>2013-09-04 18:12:11 +0200
commit62ab8441a6137d6a8832831d1bef212f6278d4e1 (patch)
treec39e54ac995eafa75abce4ef02f1dceb94fc171a /mpvcore
parentb8d498da1588891ff5c13c312f6d83f310fad963 (diff)
downloadmpv-62ab8441a6137d6a8832831d1bef212f6278d4e1.tar.bz2
mpv-62ab8441a6137d6a8832831d1bef212f6278d4e1.tar.xz
mplayer: make --save-position-on-quit save only on quit
When enabling --save-position-on-quit, playback position stored not only on quit, but in any case playback of a file was stopped. This includes going to the next file with playlist navigation commands. After some discussion on IRC, it turned out that nobody thought this was good behavior. Disable it, and really make it save only on quit. Maybe the option is useless now, as the user could remap the CLOSE_WIN key binding. On the other hand, CLOSE_WIN sounds and _is_ a bit obscure.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/mplayer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index a0965f46bf..ac4642ab57 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -4470,8 +4470,7 @@ goto_reopen_demuxer: ;
terminate_playback: // don't jump here after ao/vo/getch initialization!
- if (opts->position_save_on_quit && mpctx->stop_play != PT_RESTART &&
- mpctx->stop_play != AT_END_OF_FILE)
+ if (opts->position_save_on_quit && mpctx->stop_play == PT_QUIT)
mp_write_watch_later_conf(mpctx);
if (mpctx->step_frames)