From 92b392e722b7e5e576dc22a7c230e58d1038da42 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 31 Jul 2011 12:56:00 +0000 Subject: Reload the current playlist after reboot even if it has ended. (FS#11644) This is done to make reboot more transparent. If a playlist has ended, there should be no difference between the player doing nothing for ten minutes and the player shutting down after the idle timeout and being restarted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30226 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist_viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/playlist_viewer.c') diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 940a6d77dc..414fdd5f8d 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -278,7 +278,7 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer, size_t buffer_size; bool is_playing = audio_status() & (AUDIO_STATUS_PLAY | AUDIO_STATUS_PAUSE); bool have_list = filename || is_playing; - if (!have_list && (global_status.resume_index != -1)) + if (!have_list) { /* Try to restore the list from control file */ have_list = (playlist_resume() != -1); -- cgit