diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-09-26 10:44:55 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-09-26 10:44:55 +0200 |
commit | 44c1497e339b60e8fa6e07f24999f3450d70114b (patch) | |
tree | b5ff790a229b9c23e5ec7fb889e3e1947bc672b5 | |
parent | 4d9a30cf352bc32da1aefccb2ba244baaaa57461 (diff) |
don't try to resume session if file was opened from cmdline
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -503,6 +503,7 @@ save_resume_state (void) { void restore_resume_state (void) { if (conf_get_int ("resume_last_session", 0) && p_isstopped ()) { + conf_set_int ("resume_last_session", 0); int plt = conf_get_int ("resume.playlist", -1); int track = conf_get_int ("resume.track", -1); float pos = conf_get_float ("resume.position", -1); @@ -711,7 +712,9 @@ main (int argc, char *argv[]) { streamer_init (); - restore_resume_state (); + if (!noloadpl) { + restore_resume_state (); + } // this runs in main thread (blocks right here) player_mainloop (); |