forked from len0rd/rockbox
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
This commit is contained in:
parent
a80d7ce36e
commit
9983a04253
1 changed files with 5 additions and 1 deletions
|
|
@ -1078,8 +1078,12 @@ bool bookmark_play(char *resume_file, int index, int offset, int seed,
|
||||||
else search for it */
|
else search for it */
|
||||||
peek_filename = playlist_peek(index);
|
peek_filename = playlist_peek(index);
|
||||||
|
|
||||||
|
if (peek_filename == NULL)
|
||||||
|
{
|
||||||
|
peek_filename = playlist_peek(0);
|
||||||
if (peek_filename == NULL)
|
if (peek_filename == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(strrchr(peek_filename, '/') + 1, filename))
|
if (strcmp(strrchr(peek_filename, '/') + 1, filename))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue