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
This commit is contained in:
Peter D'Hoye 2007-08-25 16:05:58 +00:00
parent 583f186ce4
commit b8ded7d674

View file

@ -281,6 +281,12 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer,
/* Try to restore the list from control file */ /* Try to restore the list from control file */
have_list = (playlist_resume() != -1); 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) if (!have_list)
{ {
/* Nothing to view, exit */ /* Nothing to view, exit */