summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2010-04-09 20:08:48 +0000
committerJeffrey Goode <jeffg7@gmail.com>2010-04-09 20:08:48 +0000
commit9983a04253685c6e66ac3ed38370bf44063261ac (patch)
tree071edaa8f508559508c81e91a5f54ce263879a32
parenta80d7ce36e8be4407ee0cf6f88e26618142dcf29 (diff)
downloadrockbox-9983a04253685c6e66ac3ed38370bf44063261ac.tar.gz
rockbox-9983a04253685c6e66ac3ed38370bf44063261ac.zip
Partial fix for FS#10614. Can now resume from a bookmark even if the bookmark index is wrong.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25558 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index c8234d5e97..a84d935a21 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1079,7 +1079,11 @@ bool bookmark_play(char *resume_file, int index, int offset, int seed,
1079 peek_filename = playlist_peek(index); 1079 peek_filename = playlist_peek(index);
1080 1080
1081 if (peek_filename == NULL) 1081 if (peek_filename == NULL)
1082 return false; 1082 {
1083 peek_filename = playlist_peek(0);
1084 if (peek_filename == NULL)
1085 return false;
1086 }
1083 1087
1084 if (strcmp(strrchr(peek_filename, '/') + 1, filename)) 1088 if (strcmp(strrchr(peek_filename, '/') + 1, filename))
1085 { 1089 {