From 45c8b97efbaff7a5031b008223eeed56f7b0607a Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 6 Oct 2014 22:07:35 +0200 Subject: player: --save-position-on-quit should always work Now any action that stops playback of a file (even playlist navigation) will save the position. Normal EOF is of course excluded from this, as well as commands that just reload the current file. The option name is now slightly off, although you could argue what the word "quit" means. Fixes #1148 (or at least this is how I understood it). --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 23ffa80684..b07bdc6e3c 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1196,7 +1196,7 @@ terminate_playback: if (mpctx->stop_play != AT_END_OF_FILE) clear_audio_output_buffers(mpctx); - if (opts->position_save_on_quit && mpctx->stop_play == PT_QUIT) + if (opts->position_save_on_quit && PT_IS_QUIT(mpctx->stop_play)) mp_write_watch_later_conf(mpctx); if (mpctx->step_frames) -- cgit v1.2.3