1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +00:00

mplayer: don't resume playlist if --no-resume-playback is used

This commit is contained in:
wm4 2013-10-06 21:54:00 +02:00
parent 2119bcbeac
commit 2d638347c1

View File

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