summaryrefslogtreecommitdiff
path: root/apps
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 /apps
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
Diffstat (limited to 'apps')
-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,
1080 1080
1081 if (peek_filename == NULL) 1081 if (peek_filename == NULL)
1082 { 1082 {
1083 peek_filename = playlist_peek(0); 1083 /* playlist has shrunk, search from the top */
1084 index = 0;
1085 peek_filename = playlist_peek(index);
1084 if (peek_filename == NULL) 1086 if (peek_filename == NULL)
1085 return false; 1087 return false;
1086 } 1088 }