forked from len0rd/rockbox
Fix FS#13278: error message when playing a song with Rockbox for the very first time
The function to check whether a playlist has been modified
will now only try to resume a playlist, if the global resume index
is not -1.
This also means that replacing a finished (modified) playlist will not
produce a warning anymore if Rockbox has been restarted in
between. In that respect, the behavior is identical to
what it was *before* 46085c8978.
Change-Id: Ib95f89043274f1c72c75023d1506fc093aaf4cf9
This commit is contained in:
parent
3682891772
commit
e862816773
1 changed files with 1 additions and 1 deletions
|
|
@ -3438,7 +3438,7 @@ bool playlist_modified(const struct playlist_info* playlist)
|
||||||
if (!playlist)
|
if (!playlist)
|
||||||
{
|
{
|
||||||
playlist = ¤t_playlist;
|
playlist = ¤t_playlist;
|
||||||
if (!playlist->control_created && playlist_resume() == -1)
|
if (global_status.resume_index != -1 && !playlist->control_created && playlist_resume() == -1)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue