1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 21:27:08 +00:00

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.
This commit is contained in:
wm4 2013-09-05 18:00:30 +02:00
parent 150aeafdd2
commit 93bf6eba3b

View File

@ -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);