From 853572e946c1366d194229352d9f66c540212d3a Mon Sep 17 00:00:00 2001 From: Jeffrey Goode Date: Fri, 9 Apr 2010 23:19:13 +0000 Subject: 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 --- apps/tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') 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; } -- cgit v1.2.3