summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-25 16:05:58 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-25 16:05:58 +0000
commitb8ded7d674c510da7e69027fa64b62be794d0e2f (patch)
tree94b1be3497677e2734ca62badabff6b61caec8e7
parent583f186ce488ed52eb0c663a8263f4052e19063d (diff)
downloadrockbox-b8ded7d674c510da7e69027fa64b62be794d0e2f.tar.gz
rockbox-b8ded7d674c510da7e69027fa64b62be794d0e2f.zip
Accept FS #7627: allow viewing of dynamic playlist when it has ended
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14456 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist_viewer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 4f991cf9cf..a466b7e730 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -281,6 +281,12 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer,
/* Try to restore the list from control file */
have_list = (playlist_resume() != -1);
}
+ if (!have_list && (playlist_amount() > 0))
+ {
+ /*If dynamic playlist still exists, view it anyway even
+ if playback has reached the end of the playlist */
+ have_list = true;
+ }
if (!have_list)
{
/* Nothing to view, exit */