summaryrefslogtreecommitdiff
path: root/apps/playlist_viewer.c
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 /apps/playlist_viewer.c
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
Diffstat (limited to 'apps/playlist_viewer.c')
-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,
281 /* Try to restore the list from control file */ 281 /* Try to restore the list from control file */
282 have_list = (playlist_resume() != -1); 282 have_list = (playlist_resume() != -1);
283 } 283 }
284 if (!have_list && (playlist_amount() > 0))
285 {
286 /*If dynamic playlist still exists, view it anyway even
287 if playback has reached the end of the playlist */
288 have_list = true;
289 }
284 if (!have_list) 290 if (!have_list)
285 { 291 {
286 /* Nothing to view, exit */ 292 /* Nothing to view, exit */