summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2010-04-09 23:19:13 +0000
committerJeffrey Goode <jeffg7@gmail.com>2010-04-09 23:19:13 +0000
commit853572e946c1366d194229352d9f66c540212d3a (patch)
tree468f6641a5831a36144ef9160e2d8e37271a312d
parent07d19723387eb6de9964d6f86454883e198adcb4 (diff)
downloadrockbox-853572e946c1366d194229352d9f66c540212d3a.tar.gz
rockbox-853572e946c1366d194229352d9f66c540212d3a.zip
Corrects bug in r25558 that could have resumed the wrong file under a certain condition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25560 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index a84d935a21..db8f507146 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1080,7 +1080,9 @@ bool bookmark_play(char *resume_file, int index, int offset, int seed,
if (peek_filename == NULL)
{
- peek_filename = playlist_peek(0);
+ /* playlist has shrunk, search from the top */
+ index = 0;
+ peek_filename = playlist_peek(index);
if (peek_filename == NULL)
return false;
}