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 committed 2013-09-05 18:00:30 +02:00
1 parent 5de277e423
commit 2d369a39dd
1 file changed
+1 -1
+1 -1
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");
mp_msg(MSGT_CPLAYER, MSGL_INFO, "Resuming playback. This behavior can "