diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
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 | } |