1
0
Fork 0
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:
Christian Soffke 2021-03-23 05:17:44 +01:00
parent 3682891772
commit e862816773

View file

@ -3438,7 +3438,7 @@ bool playlist_modified(const struct playlist_info* playlist)
if (!playlist)
{
playlist = &current_playlist;
if (!playlist->control_created && playlist_resume() == -1)
if (global_status.resume_index != -1 && !playlist->control_created && playlist_resume() == -1)
return false;
}