From 2d638347c1d9dac8738792a59a52cb281f110653 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 6 Oct 2013 21:54:00 +0200 Subject: [PATCH] mplayer: don't resume playlist if --no-resume-playback is used --- mpvcore/mplayer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c index 4d3f24d057..7de8ff2abf 100644 --- a/mpvcore/mplayer.c +++ b/mpvcore/mplayer.c @@ -921,6 +921,8 @@ static void load_playback_resume(m_config_t *conf, const char *file) struct playlist_entry *mp_resume_playlist(struct playlist *playlist, struct MPOpts *opts) { + if (!opts->position_resume) + return NULL; for (struct playlist_entry *e = playlist->first; e; e = e->next) { char *conf = get_playback_resume_config_filename(e->filename, opts); bool exists = conf && mp_path_exists(conf);