summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-05 18:00:30 +0200
committerwm4 <wm4@nowhere>2013-09-07 08:51:36 +0200
commit93bf6eba3b2eb8fc149551cf8e1d27054236892a (patch)
tree49cad292b706b65a75fc1cc429141499ebe8700e
parent150aeafdd27ed1ed1a4818a41ae2d7b4138022f2 (diff)
downloadmpv-93bf6eba3b2eb8fc149551cf8e1d27054236892a.tar.bz2
mpv-93bf6eba3b2eb8fc149551cf8e1d27054236892a.tar.xz
mplayer: try to resume playback only if a resume file actually exists
Well, this was dumb. The resume message was printed for every file, whether a resume config file existed or not.
-rw-r--r--mpvcore/mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index 6ac0ea86ad..676ccf9843 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -888,7 +888,7 @@ exit:
static void load_playback_resume(m_config_t *conf, const char *file)
{
char *fname = get_playback_resume_config_filename(file);
- if (fname) {
+ if (fname && mp_path_exists(fname)) {
// Never apply the saved start position to following files
m_config_backup_opt(conf, "start");
try_load_config(conf, fname, false);